Skip to content

Commit

Permalink
feat: allow distinguishing between null and absent values in gql_code…
Browse files Browse the repository at this point in the history
…_builder (#381)

* feat: allow distinguishing between null and absent values

* pubspec clean

* format

* feat(gql_code_builder): make tri-state optional configurable, and end to end test with tri state null

* docs(gql_build): add documentation on tristate_optionals

* refactor(gql_code_builder): re-organize code to avoid cyclical deps

* fmt

* refactor: somewhat extract the logic for the value class implementation

* fix: add url to builtvaluefield ref check

* bump versions, update CHANGELOG
  • Loading branch information
knaeckeKami authored Nov 12, 2023
1 parent 0d9c962 commit f6a5b74
Show file tree
Hide file tree
Showing 184 changed files with 26,721 additions and 210 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ jobs:
matrix:
package:
- end_to_end_test
- end_to_end_test_tristate
runs-on: ubuntu-latest
container:
image: dart
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions codegen/end_to_end_test/lib/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type Query {
# The mutation type, represents all updates we can make to our data
type Mutation {
createReview(episode: Episode, review: ReviewInput!, createdAt: Date): Review
createCustomField(input: CustomFieldInput!): CustomField
}

# The subscription type, represents all subscriptions we can make to our data
Expand Down Expand Up @@ -158,6 +159,11 @@ input ReviewInput {
seenOn: [Date]
}

input CustomFieldInput {
id: ID!
customField: CustomField
}

# The input object sent when passing in a color
input ColorInput {
red: Int!
Expand Down
Loading

0 comments on commit f6a5b74

Please sign in to comment.