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

Commit

Permalink
Merge pull request #92 from comigor/update-examples
Browse files Browse the repository at this point in the history
Update examples
  • Loading branch information
comigor authored Feb 23, 2020
2 parents 3d8b893 + ad3d279 commit 2df1848
Show file tree
Hide file tree
Showing 19 changed files with 4,821 additions and 19,359 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

## 5.0.3
- Update examples to match latest changes.

## 5.0.2
- Use default names for query/mutation root when SDL does not declare `schema`.

Expand Down Expand Up @@ -240,6 +243,6 @@ This is totally a breaking change but as this library is still on alpha, I shoul
[readme]: ./README.md
[pr-65]: https://github.com/comigor/artemis/pull/65
[pr-68]: https://github.com/comigor/artemis/pull/68
[apollo-3-ways-schema]: https://blog.apollographql.com/three-ways-to-represent-your-graphql-schema-a41f4175100d
[apollo-3-ways-schema]: https://blog.apollographql.com/three-ways-to-represent-your-graphql-schema-a41f4175100d#:~:text=Introspection%20query%20result%20to%20SDL
[introspection-to-sdl-snippet]: https://gist.github.com/stubailo/041999ba5b8b15cede60b93ff9a38f53
[introspection-to-sdl-online]: https://codesandbox.io/s/pnmoxolx4
[introspection-to-sdl-online]: https://codesandbox.io/s/graphql-introspection-sdl-svlx2
6 changes: 4 additions & 2 deletions example/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
nubank
*.ast.g.*
/*
!/pokemon
!/graphbrainz
!/github
2 changes: 1 addition & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ A more complex example, for [graphbrainz](https://graphbrainz.herokuapp.com) (a

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

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.
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
3 changes: 2 additions & 1 deletion example/github/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
github.schema.json
github.schema.json
github.schema.graphql
4 changes: 2 additions & 2 deletions example/github/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ targets:
$default:
sources:
- lib/**
- github.schema.json
- github.schema.graphql
builders:
artemis:
options:
schema_mapping:
- schema: github.schema.json
- schema: github.schema.graphql
queries_glob: lib/graphql/search_repositories.graphql
output: lib/graphql/search_repositories.dart
12 changes: 6 additions & 6 deletions example/github/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ packages:
path: "../.."
relative: true
source: path
version: "3.2.0"
version: "5.0.2"
async:
dependency: transitive
description:
Expand Down Expand Up @@ -189,7 +189,7 @@ packages:
name: gql
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.0"
version: "0.12.2"
gql_code_gen:
dependency: transitive
description:
Expand All @@ -203,28 +203,28 @@ packages:
name: gql_dedupe_link
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.8"
version: "1.0.9"
gql_exec:
dependency: transitive
description:
name: gql_exec
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.0"
version: "0.2.2"
gql_http_link:
dependency: transitive
description:
name: gql_http_link
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.6"
version: "0.2.7"
gql_link:
dependency: transitive
description:
name: gql_link
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.2"
version: "0.2.3"
graphs:
dependency: transitive
description:
Expand Down
3 changes: 1 addition & 2 deletions example/graphbrainz/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ targets:
artemis:
options:
schema_mapping:
- schema: lib/graphbrainz.schema.json
- schema: lib/graphbrainz.schema.graphql
queries_glob: lib/queries/ed_sheeran.query.graphql
output: lib/queries/ed_sheeran.query.dart
resolve_type_field: __typename
custom_parser_import: 'package:graphbrainz_example/coercers.dart'
scalar_mapping:
- graphql_type: Date
Expand Down
Loading

0 comments on commit 2df1848

Please sign in to comment.