Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

Commit 2df1848

Browse files
authored
Merge pull request #92 from comigor/update-examples
Update examples
2 parents 3d8b893 + ad3d279 commit 2df1848

19 files changed

Lines changed: 4821 additions & 19359 deletions

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CHANGELOG
22

3+
## 5.0.3
4+
- Update examples to match latest changes.
5+
36
## 5.0.2
47
- Use default names for query/mutation root when SDL does not declare `schema`.
58

@@ -240,6 +243,6 @@ This is totally a breaking change but as this library is still on alpha, I shoul
240243
[readme]: ./README.md
241244
[pr-65]: https://github.com/comigor/artemis/pull/65
242245
[pr-68]: https://github.com/comigor/artemis/pull/68
243-
[apollo-3-ways-schema]: https://blog.apollographql.com/three-ways-to-represent-your-graphql-schema-a41f4175100d
246+
[apollo-3-ways-schema]: https://blog.apollographql.com/three-ways-to-represent-your-graphql-schema-a41f4175100d#:~:text=Introspection%20query%20result%20to%20SDL
244247
[introspection-to-sdl-snippet]: https://gist.github.com/stubailo/041999ba5b8b15cede60b93ff9a38f53
245-
[introspection-to-sdl-online]: https://codesandbox.io/s/pnmoxolx4
248+
[introspection-to-sdl-online]: https://codesandbox.io/s/graphql-introspection-sdl-svlx2

example/.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
nubank
2-
*.ast.g.*
1+
/*
2+
!/pokemon
3+
!/graphbrainz
4+
!/github

example/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ A more complex example, for [graphbrainz](https://graphbrainz.herokuapp.com) (a
1212

1313
## [**github**](./github)
1414

15-
Even simpler example, for [GitHub GraphQL API](https://graphbrainz.herokuapp.com). I didn't commit the schema because it's too big (~3MB), so provide your own if you're running the example.
15+
Even simpler example, for [GitHub GraphQL API](https://graphbrainz.herokuapp.com). I didn't commit the schema because it's too big (~3MB), so provide your own if you're running the example: https://github.com/octokit/graphql-schema

example/github/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
github.schema.json
1+
github.schema.json
2+
github.schema.graphql

example/github/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ targets:
22
$default:
33
sources:
44
- lib/**
5-
- github.schema.json
5+
- github.schema.graphql
66
builders:
77
artemis:
88
options:
99
schema_mapping:
10-
- schema: github.schema.json
10+
- schema: github.schema.graphql
1111
queries_glob: lib/graphql/search_repositories.graphql
1212
output: lib/graphql/search_repositories.dart

example/github/pubspec.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ packages:
2121
path: "../.."
2222
relative: true
2323
source: path
24-
version: "3.2.0"
24+
version: "5.0.2"
2525
async:
2626
dependency: transitive
2727
description:
@@ -189,7 +189,7 @@ packages:
189189
name: gql
190190
url: "https://pub.dartlang.org"
191191
source: hosted
192-
version: "0.12.0"
192+
version: "0.12.2"
193193
gql_code_gen:
194194
dependency: transitive
195195
description:
@@ -203,28 +203,28 @@ packages:
203203
name: gql_dedupe_link
204204
url: "https://pub.dartlang.org"
205205
source: hosted
206-
version: "1.0.8"
206+
version: "1.0.9"
207207
gql_exec:
208208
dependency: transitive
209209
description:
210210
name: gql_exec
211211
url: "https://pub.dartlang.org"
212212
source: hosted
213-
version: "0.2.0"
213+
version: "0.2.2"
214214
gql_http_link:
215215
dependency: transitive
216216
description:
217217
name: gql_http_link
218218
url: "https://pub.dartlang.org"
219219
source: hosted
220-
version: "0.2.6"
220+
version: "0.2.7"
221221
gql_link:
222222
dependency: transitive
223223
description:
224224
name: gql_link
225225
url: "https://pub.dartlang.org"
226226
source: hosted
227-
version: "0.2.2"
227+
version: "0.2.3"
228228
graphs:
229229
dependency: transitive
230230
description:

example/graphbrainz/build.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ targets:
44
artemis:
55
options:
66
schema_mapping:
7-
- schema: lib/graphbrainz.schema.json
7+
- schema: lib/graphbrainz.schema.graphql
88
queries_glob: lib/queries/ed_sheeran.query.graphql
99
output: lib/queries/ed_sheeran.query.dart
10-
resolve_type_field: __typename
1110
custom_parser_import: 'package:graphbrainz_example/coercers.dart'
1211
scalar_mapping:
1312
- graphql_type: Date

0 commit comments

Comments
 (0)