Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile all current specs here #18

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
node_modules
core
join
3 changes: 3 additions & 0 deletions _redirects
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
# This represents the official release. It redirects to the branch release below.
/core/ /core/v0.2/ 302!

# Federation 2.0 spec
/federation/v2.0/* https://www.apollographql.com/docs/federation/federation-spec/:splat 302

# This represents what's on "main" but acts as work in progress.
/core/draft/* https://apollo-specs-core.netlify.app/:splat 200!

Expand Down
37 changes: 0 additions & 37 deletions async.js

This file was deleted.

49 changes: 0 additions & 49 deletions boot.js

This file was deleted.

11 changes: 11 additions & 0 deletions build
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

PATH=$PATH:node_modules/.bin
spec-md tag/v0.1/tag-v0.1.md > tag/v0.1/index.html
spec-md core/v0.1/core-v0.1.md > core/v0.1/index.html
spec-md core/v0.2/core-v0.2.md > core/v0.2/index.html
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
5 changes: 5 additions & 0 deletions core/v0.1/core-v0.1.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
directive @core(
feature: String!,
as: String)
repeatable on SCHEMA

Loading