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

update old specification links #1182

Merged
Merged
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![Last Updated](https://img.shields.io/github/last-commit/absinthe-graphql/absinthe.svg)](https://github.com/absinthe-graphql/absinthe/commits/master)

[GraphQL](https://facebook.github.io/graphql/) implementation for Elixir.
[GraphQL](https://github.com/graphql-elixir/graphql) implementation for Elixir.

Goals:

Expand Down Expand Up @@ -61,7 +61,7 @@ We care about support for third-party frameworks, both on the back and
front end.

So far, we include specialized support for Phoenix and Plug on the backend,
and [Relay](https://facebook.github.io/relay/) on the frontend.
and [Relay](https://relay.dev/) on the frontend.

Of course we work out of the box with other frontend frameworks and GraphQL
clients, too.
Expand Down
2 changes: 1 addition & 1 deletion guides/introduction/overview.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Overview

Absinthe is the GraphQL toolkit for Elixir, an implementation of the [GraphQL specification](https://facebook.github.io/graphql/) built to suit the language's capabilities and idiomatic style.
Absinthe is the GraphQL toolkit for Elixir, an implementation of the [GraphQL specification](https://github.com/graphql-elixir/graphql) built to suit the language's capabilities and idiomatic style.

The Absinthe project consists of several complementary packages. You can find the full listing on the [absinthe-graphql](https://github.com/absinthe-graphql) GitHub organization page.

Expand Down
4 changes: 2 additions & 2 deletions guides/introspection.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Schema Introspection

You can introspect your schema using `__schema`, `__type`, and `__typename`,
as [described in the specification](https://facebook.github.io/graphql/#sec-Introspection).
as [described in the specification](https://spec.graphql.org/October2021/#sec-Introspection).

### Examples

Expand Down Expand Up @@ -89,7 +89,7 @@ Getting the name of the fields for a named type:
```

Note that you may have to nest several depths of `type`/`ofType`, as
type information includes any wrapping layers of [List](https://facebook.github.io/graphql/#sec-List) and/or [NonNull](https://facebook.github.io/graphql/#sec-Non-null).
type information includes any wrapping layers of [List](https://spec.graphql.org/October2021/#sec-List) and/or [NonNull](https://spec.graphql.org/October2021/#sec-Non-Null).

## Using GraphiQL

Expand Down
2 changes: 1 addition & 1 deletion guides/tutorial/our-first-query.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ end
> custom type name as a `:name` option to the `object` macro.

If you're curious what the type `:id` is used by the `:id` field, see
the [GraphQL spec](https://facebook.github.io/graphql/#sec-ID). It's
the [GraphQL spec](https://spec.graphql.org/October2021/#sec-ID). It's
an opaque value, and in our case is just the regular Ecto id, but
serialized as a string.

Expand Down
2 changes: 1 addition & 1 deletion guides/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

GraphQL supports query documents that declare variables that can be accepted to fill-in values. This is a useful mechanism for reusing GraphQL documents---instead of attempting to interpolate values yourself.

- To support variables, simply define them for your query document [as the specification expects](https://facebook.github.io/graphql/#sec-Language.Query-Document.Variables), and pass in a `variables` option to `Absinthe.run`.
- To support variables, simply define them for your query document [as the specification expects](https://spec.graphql.org/October2021/#sec-Language.Variables), and pass in a `variables` option to `Absinthe.run`.
- If you're using [absinthe_plug](https://github.com/absinthe-graphql/absinthe_plug), variables are passed in for you automatically after being parsed
from the query parameters or `POST` body.

Expand Down
6 changes: 3 additions & 3 deletions lib/absinthe/introspection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Absinthe.Introspection do
Introspection support.

You can introspect your schema using `__schema`, `__type`, and `__typename`,
as [described in the specification](https://facebook.github.io/graphql/#sec-Introspection).
as [described in the specification](https://spec.graphql.org/October2021/#sec-Introspection).

## Examples

Expand Down Expand Up @@ -94,8 +94,8 @@ defmodule Absinthe.Introspection do
```

(Note that you may have to nest several depths of `type`/`ofType`, as
type information includes any wrapping layers of [List](https://facebook.github.io/graphql/#sec-List)
and/or [NonNull](https://facebook.github.io/graphql/#sec-Non-null).)
type information includes any wrapping layers of [List](https://spec.graphql.org/October2021/#sec-List)
and/or [NonNull](https://spec.graphql.org/October2021/#sec-Non-Null).)
"""

alias Absinthe.Type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,16 @@ defmodule Absinthe.Phase.Schema.Validation.QueryTypeMustBeObject do
--------------------------------------
From the graqhql schema specification

A GraphQL schema includes types, indicating where query and mutation
operations start. This provides the initial entry points into the type system.
The query type must always be provided, and is an Object base type. The
mutation type is optional; if it is null, that means the system does not
support mutations. If it is provided, it must be an object base type.
A schema defines the initial root operation type for each kind of operation
it supports: query, mutation, and subscription; this determines the place in
the type system where those operations begin.

Reference: https://facebook.github.io/graphql/#sec-Initial-types
The query root operation type must be provided and must be an Object type.

The mutation root operation type is optional; if it is not provided, the service
does not support mutations. If it is provided, it must be an Object type.

Reference: https://spec.graphql.org/October2021/#sec-Root-Operation-Types
"""

def explanation(_value) do
Expand Down
2 changes: 1 addition & 1 deletion test/absinthe/execution/arguments/list_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ defmodule Absinthe.Execution.Arguments.ListTest do
}
"""
test "it will coerce a non list item if it's of the right type" do
# per https://facebook.github.io/graphql/#sec-Lists
# per https://spec.graphql.org/October2021/#sec-List
assert_data(%{"numbers" => [1]}, run(@graphql, @schema))
end

Expand Down