github.com/dgraph-io/dgraph@v1.2.8/graphql/schema/testdata/schemagen/output/no-id-field-with-searchables.graphql (about)

     1  #######################
     2  # Input Schema
     3  #######################
     4  
     5  type Post {
     6  	content: String! @search
     7  }
     8  
     9  #######################
    10  # Extended Definitions
    11  #######################
    12  
    13  scalar DateTime
    14  
    15  enum DgraphIndex {
    16  	int
    17  	float
    18  	bool
    19  	hash
    20  	exact
    21  	term
    22  	fulltext
    23  	trigram
    24  	regexp
    25  	year
    26  	month
    27  	day
    28  	hour
    29  }
    30  
    31  directive @hasInverse(field: String!) on FIELD_DEFINITION
    32  directive @search(by: [DgraphIndex!]) on FIELD_DEFINITION
    33  directive @dgraph(type: String, pred: String) on OBJECT | INTERFACE | FIELD_DEFINITION
    34  directive @id on FIELD_DEFINITION
    35  
    36  input IntFilter {
    37  	eq: Int
    38  	le: Int
    39  	lt: Int
    40  	ge: Int
    41  	gt: Int
    42  }
    43  
    44  input FloatFilter {
    45  	eq: Float
    46  	le: Float
    47  	lt: Float
    48  	ge: Float
    49  	gt: Float
    50  }
    51  
    52  input DateTimeFilter {
    53  	eq: DateTime
    54  	le: DateTime
    55  	lt: DateTime
    56  	ge: DateTime
    57  	gt: DateTime
    58  }
    59  
    60  input StringTermFilter {
    61  	allofterms: String
    62  	anyofterms: String
    63  }
    64  
    65  input StringRegExpFilter {
    66  	regexp: String
    67  }
    68  
    69  input StringFullTextFilter {
    70  	alloftext: String
    71  	anyoftext: String
    72  }
    73  
    74  input StringExactFilter {
    75  	eq: String
    76  	le: String
    77  	lt: String
    78  	ge: String
    79  	gt: String
    80  }
    81  
    82  input StringHashFilter {
    83  	eq: String
    84  }
    85  
    86  #######################
    87  # Generated Types
    88  #######################
    89  
    90  type AddPostPayload {
    91  	post(filter: PostFilter, order: PostOrder, first: Int, offset: Int): [Post]
    92  }
    93  
    94  type DeletePostPayload {
    95  	msg: String
    96  }
    97  
    98  type UpdatePostPayload {
    99  	post(filter: PostFilter, order: PostOrder, first: Int, offset: Int): [Post]
   100  }
   101  
   102  #######################
   103  # Generated Enums
   104  #######################
   105  
   106  enum PostOrderable {
   107  	content
   108  }
   109  
   110  #######################
   111  # Generated Inputs
   112  #######################
   113  
   114  input AddPostInput {
   115  	content: String!
   116  }
   117  
   118  input PostFilter {
   119  	content: StringTermFilter
   120  	and: PostFilter
   121  	or: PostFilter
   122  	not: PostFilter
   123  }
   124  
   125  input PostOrder {
   126  	asc: PostOrderable
   127  	desc: PostOrderable
   128  	then: PostOrder
   129  }
   130  
   131  input PostPatch {
   132  	content: String
   133  }
   134  
   135  input PostRef {
   136  	content: String
   137  }
   138  
   139  input UpdatePostInput {
   140  	filter: PostFilter!
   141  	set: PostPatch
   142  	remove: PostPatch
   143  }
   144  
   145  #######################
   146  # Generated Query
   147  #######################
   148  
   149  type Query {
   150  	queryPost(filter: PostFilter, order: PostOrder, first: Int, offset: Int): [Post]
   151  }
   152  
   153  #######################
   154  # Generated Mutations
   155  #######################
   156  
   157  type Mutation {
   158  	addPost(input: [AddPostInput!]!): AddPostPayload
   159  	updatePost(input: UpdatePostInput!): UpdatePostPayload
   160  	deletePost(filter: PostFilter!): DeletePostPayload
   161  }