Skip to content

Commit f6a5b74

Browse files
authored
feat: allow distinguishing between null and absent values in gql_code_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
1 parent 0d9c962 commit f6a5b74

File tree

184 files changed

+26721
-210
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+26721
-210
lines changed

.github/workflows/dart.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ jobs:
125125
matrix:
126126
package:
127127
- end_to_end_test
128+
- end_to_end_test_tristate
128129
runs-on: ubuntu-latest
129130
container:
130131
image: dart

codegen/end_to_end_test/lib/graphql/__generated__/schema.ast.gql.dart

Lines changed: 45 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codegen/end_to_end_test/lib/graphql/__generated__/schema.schema.gql.dart

Lines changed: 28 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codegen/end_to_end_test/lib/graphql/__generated__/schema.schema.gql.g.dart

Lines changed: 153 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codegen/end_to_end_test/lib/graphql/__generated__/serializers.gql.dart

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codegen/end_to_end_test/lib/graphql/__generated__/serializers.gql.g.dart

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codegen/end_to_end_test/lib/graphql/schema.graphql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ type Query {
2424
# The mutation type, represents all updates we can make to our data
2525
type Mutation {
2626
createReview(episode: Episode, review: ReviewInput!, createdAt: Date): Review
27+
createCustomField(input: CustomFieldInput!): CustomField
2728
}
2829

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

162+
input CustomFieldInput {
163+
id: ID!
164+
customField: CustomField
165+
}
166+
161167
# The input object sent when passing in a color
162168
input ColorInput {
163169
red: Int!

0 commit comments

Comments
 (0)