-
Notifications
You must be signed in to change notification settings - Fork 1
/
tagging.yml
59 lines (58 loc) · 2.13 KB
/
tagging.yml
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
# Configuration file for NewRelic's tagging GraphQL API
# options are not required, omit to use defaults
options:
# Set the logLevel to info
- logLevel: info
# Use the cached GraphQL schema at ./schema.gql
useCached: true
# entity definitions, multiple entities in a single configuraiton file are supported
entities:
# entity name controls the output filename prefix and the generated codes' suffix. This is a logical grouping and is not related to the schema
- name: tagging
# The GraphQL mutations to generate
mutations:
# Each mutation is labeled, the label provides the gql object's prefix and allows for normalizing the output
create:
# The mutation's name as found in the RootMutationType's fields
- name: taggingAddTagsToEntity
# The GraphQL type of the field
type: TaggingMutationResult
update:
- name: taggingReplaceTagsOnEntity
type: TaggingMutationResult
delete:
- name: taggingDeleteTagFromEntity
type: TaggingMutationResult
taggingDeleteTagValuesFromEntity:
- name: taggingDeleteTagValuesFromEntity
type: TaggingMutationResult
# The GraphQL queries to generate
queries:
# Each query is labeled, the label provides the gql object's prefix and allows for normalizing the output
read:
# The queries' name as found in the RootQueryType's fields
- name: actor
# The GraphQL type of the field
type: Actor
# Prune the type's fields, only provide the specified subfields.
prune: true
subFields:
- name: entity
type: Entity
prune: false
list:
- name: actor
type: Actor
prune: true
subFields:
- name: entitySearch
type: EntitySearch
prune: false
subFields:
- name: results
type: EntitySearchResult
prune: false
subFields:
- name: entities
type: EntityOutline
prune: false