Skip to content

Commit 588c2fd

Browse files
author
Robert Mosolgo
authored
Merge pull request #2175 from abhaynikam/remove-blue-notice-for-class-based-api
Removed blue notice bar which prompts about New class based API
2 parents 584a286 + e134bab commit 588c2fd

19 files changed

+0
-29
lines changed

guides/_layouts/guide.html

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,6 @@
1818
</p>
1919
</div>
2020
{% endif %}
21-
{% if page.class_based_api %}
22-
<div class="class-based-header">
23-
<p>
24-
<strong>⚠ New Class-Based API ⚠</strong>
25-
</p>
26-
<p>
27-
This describes a new API in <code>v1.8.0</code>.
28-
Check the <a href="/schema/class_based_api">upgrade notes</a> for more info.
29-
</p>
30-
</div>
31-
{% endif %}
3221
{% if page.pro %}
3322
<div class="pro-header">
3423
<p>

guides/fields/arguments.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ section: Fields
66
title: Arguments
77
desc: Fields may take arguments as inputs
88
index: 10
9-
class_based_api: true
109
---
1110

1211
Fields can take **arguments** as input. These can be used to determine the return value (eg, filtering search results) or to modify the application state (eg, updating the database in `MutationType`).

guides/fields/resolvers.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ section: Fields
66
title: Resolvers
77
desc: Reusable, extendable resolution logic for complex fields
88
index: 9
9-
class_based_api: true
109
redirect_from:
1110
- /fields/functions
1211
---

guides/mutations/mutation_classes.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ search: true
55
section: Mutations
66
title: Mutation Classes
77
desc: Use mutation classes to implement behavior, then hook them up to your schema.
8-
class_based_api: true
98
index: 1
109
redirect_from:
1110
- /queries/mutations/

guides/mutations/mutation_root.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ search: true
55
section: Mutations
66
title: Mutation Root
77
desc: The Mutation object is the entry point for mutation operations.
8-
class_based_api: true
98
index: 0
109
---
1110

guides/schema/class_based_api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ search: true
55
section: Schema
66
title: Class-based API
77
desc: Define your GraphQL schema with Ruby classes (1.8.x alpha releases)
8-
class_based_api: true
98
index: 10
109
---
1110

guides/schema/definition.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ search: true
55
section: Schema
66
title: Definition
77
desc: Defining your schema
8-
class_based_api: true
98
index: 1
109
---
1110

guides/schema/introspection.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ search: true
55
title: Introspection
66
section: Schema
77
desc: GraphQL has an introspection system that tells about the schema.
8-
class_based_api: true
98
index: 2
109
---
1110

guides/type_definitions/directives.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ section: Type Definitions
66
title: Directives
77
desc: Special instructions for the GraphQL runtime
88
index: 10
9-
class_based_api: true
109
experimental: true
1110
---
1211

guides/type_definitions/enums.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ section: Type Definitions
66
title: Enums
77
desc: Enums are sets of discrete values
88
index: 2
9-
class_based_api: true
109
---
1110

1211
Enum types are sets of discrete values. An enum field must return one of the possible values of the enum. In the [GraphQL Schema Definition Language](https://graphql.org/learn/schema/#type-language) (SDL), enums are described like this:

guides/type_definitions/extensions.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ section: Type Definitions
66
title: Extending the GraphQL-Ruby Type Definition System
77
desc: Adding metadata and custom helpers to the DSL
88
index: 8
9-
class_based_api: true
109
redirect_from:
1110
- /schema/extending_the_dsl/
1211
---

guides/type_definitions/field_extensions.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ section: Type Definitions
66
title: Field Extensions
77
desc: Programmatically modify field configuration and resolution
88
index: 10
9-
class_based_api: true
109
---
1110

1211
{{ "GraphQL::Schema::FieldExtension" | api_doc }} provides a way to modify user-defined fields in a programmatic way. For example, Relay connections are implemented as a field extension ({{ "GraphQL::Schema::Field::ConnectionExtension" | api_doc }}).

guides/type_definitions/input_objects.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ section: Type Definitions
66
title: Input Objects
77
desc: Input objects are sets of key-value pairs which can be used as field arguments.
88
index: 3
9-
class_based_api: true
109
---
1110

1211
Input object types are complex inputs for GraphQL operations. They're great for fields that need a lot of structured input, like mutations or search fields. In a GraphQL request, it might look like this:

guides/type_definitions/interfaces.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ section: Type Definitions
66
title: Interfaces
77
desc: Interfaces are lists of fields which objects may implement
88
index: 4
9-
class_based_api: true
109
redirect_from:
1110
- /types/abstract_types/
1211
---

guides/type_definitions/lists.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ section: Type Definitions
66
title: Lists
77
desc: Ordered lists containing other types
88
index: 6
9-
class_based_api: true
109
---
1110

1211
GraphQL has _list types_ which are ordered lists containing items of other types. The following examples use the [GraphQL Schema Definition Language](https://graphql.org/learn/schema/#type-language) (SDL).

guides/type_definitions/non_nulls.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ section: Type Definitions
66
title: Non-Null Types
77
desc: Values which must be present
88
index: 7
9-
class_based_api: true
109
---
1110

1211
GraphQL's concept of _non-null_ is expressed in the [Schema Definition Language](https://graphql.org/learn/schema/#type-language) (SDL) with `!`, for example:

guides/type_definitions/objects.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ section: Type Definitions
66
title: Objects
77
desc: Objects expose data and link to other objects
88
index: 0
9-
class_based_api: true
109
---
1110

1211
GraphQL object types are the bread and butter of GraphQL APIs. Each object has _fields_ which expose data and may be queried by name. For example, we can query a `User` like this:

guides/type_definitions/scalars.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ section: Type Definitions
66
title: Scalars
77
desc: Scalars are "simple" data types like integers and strings
88
index: 1
9-
class_based_api: true
109
---
1110

1211
Scalars are "leaf" values in GraphQL. There are several built-in scalars, and you can define custom scalars, too. ({% internal_link "Enums", "/type_definitions/enums" %} are also leaf values.) The built-in scalars are:

guides/type_definitions/unions.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ section: Type Definitions
66
title: Unions
77
desc: Unions are sets of types which may appear in the same place (but don't share fields).
88
index: 5
9-
class_based_api: true
109
---
1110

1211
A union type is a set of object types which may appear in the same spot. Here's a union, expressed in [GraphQL Schema Definition Language](https://graphql.org/learn/schema/#type-language) (SDL):

0 commit comments

Comments
 (0)