Skip to content

Commit 9e87ad6

Browse files
unicodeveloperpeggyrayzis
authored andcommitted
Fix examples
1 parent 70f75f1 commit 9e87ad6

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

docs/source/resources/graphql-glossary.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,16 @@ type User {
8484
<h2 id="field">Field</h2>
8585
<p>A unit of data you are asking for in a Schema, which ends up as a field in your JSON response data.</p>
8686

87+
```js
88+
type Author {
89+
id: Int!
90+
firstName: String
91+
lastName: String
92+
}
93+
```
94+
95+
`id`, `firstName`, and `lastName` are fields in the example above.
96+
8797

8898
<h2 id="fragment">Fragment</h2>
8999
<p>A selection set that can be reused in multiple query operations. A [GraphQL fragment](https://www.apollographql.com/docs/react/advanced/fragments.html) is a shared piece of query logic.</p>
@@ -163,14 +173,16 @@ const response = {
163173
```
164174

165175
<h2 id="object-type">Object Type</h2>
166-
<p>A form of Object with a type specifier that has fields that can fetch data from an API service, e.g User is an Object type.</p>
176+
<p>A type in a GraphQL schema which has fields.</p>
167177

168178
```js
169179
type User {
170180
name: String!,
171181
}
172182
```
173183

184+
`User` is an Object type in the example above.
185+
174186
<h2 id="operation">Operation</h2>
175187
<p>A single query, mutation, or subscription that can be interpreted by a GraphQL execution engine.</p>
176188

@@ -234,7 +246,7 @@ export const queryComponent = `const DogPhoto = ({ breed }) => (
234246

235247

236248
<h2 id="schema">Schema</h2>
237-
<p>A model of the data that can be fetched from or written to a GraphQL server.</p>
249+
<p>A GraphQL [schema](https://www.apollographql.com/docs/apollo-server/essentials/schema.html) is at the center of any GraphQL server implementation and describes the functionality available to the clients which connect to it.</p>
238250

239251

240252
<h2 id="schema-definition-language">Schema Definition Language (SDL)</h2>
@@ -300,4 +312,4 @@ subscription onCommentAdded($repoFullName: String!){
300312

301313

302314
<h2 id="whole-response-caching">Whole response caching</h2>
303-
<p>A technique used to cache entire results of GraphQL queries. This process improves performance by preventing the fetching of the same results from the server if it has been obtained before. Check out the [Apollo performance guide on how to implement this type of caching](../guides/performance.html).</p>
315+
<p>A technique used to cache entire results of GraphQL queries. This process improves performance by preventing the fetching of the same results from the server if it has been obtained before. Check out the [Apollo performance guide](../guides/performance.html).</p>

0 commit comments

Comments
 (0)