Skip to content

Commit

Permalink
link spec updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashi Krishnan committed Apr 23, 2022
1 parent faaf8dd commit ef9570b
Show file tree
Hide file tree
Showing 40 changed files with 9,564 additions and 37 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
node_modules
core
join
1 change: 1 addition & 0 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ spec-md inaccessible/v0.1/inaccessible-v0.1.md > inaccessible/v0.1/index.html
spec-md link/v1.0/link-v1.0.md > link/v1.0/index.html
spec-md join/v0.1/join-v0.1.md > join/v0.1/index.html
spec-md federation/v2.0/federation-v2.0.md > federation/v2.0/index.html
spec-md index.md > index.html
3 changes: 3 additions & 0 deletions core/v0.1/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
.dist
package-lock.json
9 changes: 9 additions & 0 deletions core/v0.1/bad-non-unique-prefix-multi.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
schema
@core(feature: "https://specs.apollo.dev/core/v0.1")
@core(feature: "https://specs.example.com/A/1.0") # name is A
@core(feature: "https://specs.example.com/A/2.0") # name is A
{
query: Query
}

directive @core(feature: String!, as: String) repeatable on SCHEMA
9 changes: 9 additions & 0 deletions core/v0.1/bad-non-unique-prefix.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
schema
@core(feature: "https://specs.apollo.dev/core/v0.1")
@core(feature: "https://specs.example.com/A/1.0") # name is A
@core(feature: "https://www.specs.com/specA/1.1", as: "A") # name is A
{
query: Query
}

directive @core(feature: String!, as: String) repeatable on SCHEMA
14 changes: 14 additions & 0 deletions core/v0.1/basic.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
schema
@core(feature: "https://specs.apollo.dev/core/v0.1")
@core(feature: "https://specs.example.com/example/v1.0")
{
query: Query
}

type Query {
field: Int @example
}

directive @example on FIELD_DEFINITION

directive @core(feature: String!, as: String) repeatable on SCHEMA
485 changes: 485 additions & 0 deletions core/v0.1/core-v0.1.md

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions core/v0.1/good-unique-prefix-multi.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
schema
@core(feature: "https://specs.apollo.dev/core/v0.1")
@core(feature: "https://specs.example.com/A/1.0") # name is A
@core(feature: "https://specs.example.com/A/2.0", as: "A2") # name is A2
{
query: Query
}

directive @core(feature: String!, as: String) repeatable on SCHEMA
Loading

0 comments on commit ef9570b

Please sign in to comment.