Skip to content

Commit

Permalink
Merge branch 'master' of github.com:gql-dart/gql into release
Browse files Browse the repository at this point in the history
  • Loading branch information
knaeckeKami committed Nov 12, 2023
2 parents bba9c7a + df4f529 commit 4707ca2
Show file tree
Hide file tree
Showing 17 changed files with 117 additions and 42 deletions.

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.

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.

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.

Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void main() {
BuiltList([DateTime.fromMillisecondsSinceEpoch(1591892597000)]),
));
test('correctly overrides scalars in input types', () {
expect((input.seenOn! as PresentValue<BuiltList>).value!.first,
expect((input.seenOn as PresentValue<BuiltList>).value!.first,
TypeMatcher<DateTime>());
});

Expand All @@ -86,7 +86,7 @@ void main() {
);

test('correctly overrides scalars in variable types', () {
expect((vars.createdAt! as PresentValue).value, TypeMatcher<DateTime>());
expect((vars.createdAt as PresentValue).value, TypeMatcher<DateTime>());
});

test('can be serialized and deserialized with custom serializer', () {
Expand Down
4 changes: 4 additions & 0 deletions codegen/gql_code_builder/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.9.1+1

- fix generating the `Value` wrappers as nullable

## 0.9.0

- add TriStateValueConfig option in order to wrap nullable fields in input types in a `Value` class in order distinguish between three cases:
Expand Down
2 changes: 1 addition & 1 deletion codegen/gql_code_builder/lib/src/common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Method buildOptionalGetter({

final optionalGetter = baseGetter.rebuild((b) => b
..returns = TypeReference((b2) => b2
..isNullable = true
..isNullable = false
..url = valueTypeUrl
..symbol = valueTypeSymbol
..types.add((baseGetter.returns as TypeReference)
Expand Down
Loading

0 comments on commit 4707ca2

Please sign in to comment.