-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdirectives.graphql
63 lines (53 loc) · 2.07 KB
/
directives.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
"""
Associate a type with a Drupal entity type.
"""
directive @entity(type: String!, bundle: String, access: Boolean) on OBJECT
"""
Directive for the "MenuFeed" plugin.
menu_id: The internal menu id.
menu_ids: Internal menu id's. The first one the current user has access to will be picked.
item_type: GraphQL type for menu items.
**DEPRECATED**: Explicitly define Menu item types with `resolveMenu*`
directives instead.
max_level: The maximum level to be fetched.
This can be used to optimizing caching. Most of the time only one or two
levels of menus are immediately visible on the page. By declaring multiple
types, we can generate different cache buckets, so a new menu item on a low
level does not require a full rebuild of every page.
"""
directive @menu(
menu_id: String
menu_ids: [String!]
item_type: String
max_level: Int
) on OBJECT
directive @isPath on FIELD_DEFINITION
directive @isTemplate on FIELD_DEFINITION
directive @stringTranslation(contextPrefix: String) on OBJECT
directive @translatableString(contextPrefix: String) on OBJECT
"""
Fetch an entity or entity revision based on id, rid or route
Provided by the "silverback_gatsby" module.
Implemented in "Drupal\silverback_gatsby\Plugin\GraphQL\Directive\EntityFetch".
"""
directive @fetchEntity(
type: String
id: String
rid: String
language: String
operation: String
preview_user_id: String
preview_access_token: String
) repeatable on FIELD_DEFINITION | SCALAR | UNION | ENUM | INTERFACE | OBJECT
"""
Retrieve the properties of an image.
Provided by the "silverback_gatsby" module.
Implemented in "Drupal\silverback_gatsby\Plugin\GraphQL\Directive\ImageProps".
"""
directive @imageProps repeatable on FIELD_DEFINITION | SCALAR | UNION | ENUM | INTERFACE | OBJECT
"""
Retrieve focal point coordinates for an image source.
Provided by the "silverback_gatsby" module.
Implemented in "Drupal\silverback_gatsby\Plugin\GraphQL\Directive\FocalPoint".
"""
directive @focalPoint repeatable on FIELD_DEFINITION | SCALAR | UNION | ENUM | INTERFACE | OBJECT