You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/resources/graphql-glossary.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,16 @@ type User {
84
84
<h2id="field">Field</h2>
85
85
<p>A unit of data you are asking for in a Schema, which ends up as a field in your JSON response data.</p>
86
86
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
+
87
97
88
98
<h2id="fragment">Fragment</h2>
89
99
<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 = {
163
173
```
164
174
165
175
<h2id="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>
167
177
168
178
```js
169
179
type User {
170
180
name:String!,
171
181
}
172
182
```
173
183
184
+
`User` is an Object type in the example above.
185
+
174
186
<h2id="operation">Operation</h2>
175
187
<p>A single query, mutation, or subscription that can be interpreted by a GraphQL execution engine.</p>
<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>
238
250
239
251
240
252
<h2id="schema-definition-language">Schema Definition Language (SDL)</h2>
<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