graphql-engine/cli-ext/tests/sdl/payload.js
hasura-bot 7b31ff99d1 Support Postgres POSIX regex operators (close #4317) (#119)
Co-authored-by: christophediprima <dipdipdip84@gmail.com>
Co-authored-by: dip <dipdipdip84@gmail.com>
Co-authored-by: Auke Booij <auke@hasura.io>
Co-authored-by: Antoine Leblanc <antoine@hasura.io>
GITHUB_PR_NUMBER: 6172
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6172
GitOrigin-RevId: 5192d238b527cd21b6efb2f74e279ecc34756c29
2020-11-27 10:54:52 +00:00

3075 lines
88 KiB
JavaScript

const toPayload = {
"derive": {
"operation": "mutation ($objects: user_insert_input!) { insert_user ( objects: [$objects] ) { affected_rows } }",
"action_name": "actionName",
"introspection_schema": {
"__schema": {
"directives": [{
"args": [{
"name": "if",
"defaultValue": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"description": null
}],
"name": "include",
"locations": ["FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"],
"description": null
}, {
"args": [{
"name": "if",
"defaultValue": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"description": null
}],
"name": "skip",
"locations": ["FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"],
"description": null
}],
"queryType": {
"name": "query_root"
},
"subscriptionType": {
"name": "subscription_root"
},
"types": [{
"inputFields": null,
"kind": "SCALAR",
"possibleTypes": null,
"interfaces": null,
"name": "Boolean",
"enumValues": null,
"description": null,
"fields": null
}, {
"inputFields": null,
"kind": "SCALAR",
"possibleTypes": null,
"interfaces": null,
"name": "Float",
"enumValues": null,
"description": null,
"fields": null
}, {
"inputFields": null,
"kind": "SCALAR",
"possibleTypes": null,
"interfaces": null,
"name": "ID",
"enumValues": null,
"description": null,
"fields": null
}, {
"inputFields": null,
"kind": "SCALAR",
"possibleTypes": null,
"interfaces": null,
"name": "Int",
"enumValues": null,
"description": null,
"fields": null
}, {
"inputFields": [{
"name": "_eq",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": null
}, {
"name": "_gt",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": null
}, {
"name": "_gte",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": null
}, {
"name": "_in",
"defaultValue": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
}
},
"description": null
}, {
"name": "_is_null",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"description": null
}, {
"name": "_lt",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": null
}, {
"name": "_lte",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": null
}, {
"name": "_neq",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": null
}, {
"name": "_nin",
"defaultValue": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
}
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "Int_comparison_exp",
"enumValues": null,
"description": "expression to compare columns of type Int. All fields are combined with logical 'AND'.",
"fields": null
}, {
"inputFields": null,
"kind": "SCALAR",
"possibleTypes": null,
"interfaces": null,
"name": "String",
"enumValues": null,
"description": null,
"fields": null
}, {
"inputFields": [{
"name": "_eq",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"name": "_gt",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"name": "_gte",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"name": "_ilike",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"name": "_in",
"defaultValue": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}
},
"description": null
}, {
"name": "_is_null",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"description": null
}, {
"name": "_like",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"name": "_lt",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"name": "_lte",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"name": "_neq",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"name": "_nilike",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"name": "_nin",
"defaultValue": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}
},
"description": null
}, {
"name": "_nlike",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"name": "_nsimilar",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"name": "_similar",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"name": "_nregex",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"name": "_regex",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"name": "_niregex",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"name": "_iregex",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "String_comparison_exp",
"enumValues": null,
"description": "expression to compare columns of type String. All fields are combined with logical 'AND'.",
"fields": null
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "__Directive",
"enumValues": null,
"description": null,
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "args",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__InputValue",
"ofType": null
}
}
}
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "description",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "locations",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "__DirectiveLocation",
"ofType": null
}
}
}
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "name",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"description": null
}]
}, {
"inputFields": null,
"kind": "ENUM",
"possibleTypes": null,
"interfaces": null,
"name": "__DirectiveLocation",
"enumValues": [{
"isDeprecated": false,
"deprecationReason": null,
"name": "ARGUMENT_DEFINITION",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "ENUM",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "ENUM_VALUE",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "FIELD",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "FIELD_DEFINITION",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "FRAGMENT_DEFINITION",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "FRAGMENT_SPREAD",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "INLINE_FRAGMENT",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "INPUT_FIELD_DEFINITION",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "INPUT_OBJECT",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "INTERFACE",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "MUTATION",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "OBJECT",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "QUERY",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "SCALAR",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "SCHEMA",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "SUBSCRIPTION",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "UNION",
"description": null
}],
"description": null,
"fields": null
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "__EnumValue",
"enumValues": null,
"description": null,
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "deprecationReason",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "description",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "isDeprecated",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "name",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"description": null
}]
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "__Field",
"enumValues": null,
"description": null,
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "args",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__InputValue",
"ofType": null
}
}
}
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "deprecationReason",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "description",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "isDeprecated",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "name",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "type",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__Type",
"ofType": null
}
},
"description": null
}]
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "__InputValue",
"enumValues": null,
"description": null,
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "defaultValue",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "description",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "name",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "type",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__Type",
"ofType": null
}
},
"description": null
}]
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "__Schema",
"enumValues": null,
"description": null,
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "directives",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__Directive",
"ofType": null
}
}
}
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "mutationType",
"type": {
"kind": "OBJECT",
"name": "__Type",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "queryType",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__Type",
"ofType": null
}
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "subscriptionType",
"type": {
"kind": "OBJECT",
"name": "__Type",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "types",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__Type",
"ofType": null
}
}
}
},
"description": null
}]
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "__Type",
"enumValues": null,
"description": null,
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "description",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"args": [{
"name": "includeDeprecated",
"defaultValue": "false",
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"description": null
}],
"isDeprecated": false,
"deprecationReason": null,
"name": "enumValues",
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__EnumValue",
"ofType": null
}
}
},
"description": null
}, {
"args": [{
"name": "includeDeprecated",
"defaultValue": "false",
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"description": null
}],
"isDeprecated": false,
"deprecationReason": null,
"name": "fields",
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__Field",
"ofType": null
}
}
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "inputFields",
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__InputValue",
"ofType": null
}
}
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "interfaces",
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__Type",
"ofType": null
}
}
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "kind",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "__TypeKind",
"ofType": null
}
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "name",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "ofType",
"type": {
"kind": "OBJECT",
"name": "__Type",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "possibleTypes",
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "__Type",
"ofType": null
}
}
},
"description": null
}]
}, {
"inputFields": null,
"kind": "ENUM",
"possibleTypes": null,
"interfaces": null,
"name": "__TypeKind",
"enumValues": [{
"isDeprecated": false,
"deprecationReason": null,
"name": "ENUM",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "INPUT_OBJECT",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "INTERFACE",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "LIST",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "NON_NULL",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "OBJECT",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "SCALAR",
"description": null
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "UNION",
"description": null
}],
"description": null,
"fields": null
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "mutation_root",
"enumValues": null,
"description": "mutation root",
"fields": [{
"args": [{
"name": "where",
"defaultValue": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INPUT_OBJECT",
"name": "user_bool_exp",
"ofType": null
}
},
"description": "filter the rows which have to be deleted"
}],
"isDeprecated": false,
"deprecationReason": null,
"name": "delete_user",
"type": {
"kind": "OBJECT",
"name": "user_mutation_response",
"ofType": null
},
"description": "delete data from the table: \"user\""
}, {
"args": [{
"name": "objects",
"defaultValue": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INPUT_OBJECT",
"name": "user_insert_input",
"ofType": null
}
}
}
},
"description": "the rows to be inserted"
}, {
"name": "on_conflict",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_on_conflict",
"ofType": null
},
"description": "on conflict condition"
}],
"isDeprecated": false,
"deprecationReason": null,
"name": "insert_user",
"type": {
"kind": "OBJECT",
"name": "user_mutation_response",
"ofType": null
},
"description": "insert data into the table: \"user\""
}, {
"args": [{
"name": "_inc",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_inc_input",
"ofType": null
},
"description": "increments the integer columns with given value of the filtered values"
}, {
"name": "_set",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_set_input",
"ofType": null
},
"description": "sets the columns of the filtered rows to the given values"
}, {
"name": "where",
"defaultValue": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INPUT_OBJECT",
"name": "user_bool_exp",
"ofType": null
}
},
"description": "filter the rows which have to be updated"
}],
"isDeprecated": false,
"deprecationReason": null,
"name": "update_user",
"type": {
"kind": "OBJECT",
"name": "user_mutation_response",
"ofType": null
},
"description": "update data of the table: \"user\""
}]
}, {
"inputFields": null,
"kind": "ENUM",
"possibleTypes": null,
"interfaces": null,
"name": "order_by",
"enumValues": [{
"isDeprecated": false,
"deprecationReason": null,
"name": "asc",
"description": "in the ascending order, nulls last"
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "asc_nulls_first",
"description": "in the ascending order, nulls first"
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "asc_nulls_last",
"description": "in the ascending order, nulls last"
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "desc",
"description": "in the descending order, nulls first"
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "desc_nulls_first",
"description": "in the descending order, nulls first"
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "desc_nulls_last",
"description": "in the descending order, nulls last"
}],
"description": "column ordering options",
"fields": null
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "query_root",
"enumValues": null,
"description": "query root",
"fields": [{
"args": [{
"name": "distinct_on",
"defaultValue": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "user_select_column",
"ofType": null
}
}
},
"description": "distinct select on columns"
}, {
"name": "limit",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": "limit the number of rows returned"
}, {
"name": "offset",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": "skip the first n rows. Use only with order_by"
}, {
"name": "order_by",
"defaultValue": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INPUT_OBJECT",
"name": "user_order_by",
"ofType": null
}
}
},
"description": "sort the rows by one or more columns"
}, {
"name": "where",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_bool_exp",
"ofType": null
},
"description": "filter the rows returned"
}],
"isDeprecated": false,
"deprecationReason": null,
"name": "user",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "user",
"ofType": null
}
}
}
},
"description": "fetch data from the table: \"user\""
}, {
"args": [{
"name": "distinct_on",
"defaultValue": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "user_select_column",
"ofType": null
}
}
},
"description": "distinct select on columns"
}, {
"name": "limit",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": "limit the number of rows returned"
}, {
"name": "offset",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": "skip the first n rows. Use only with order_by"
}, {
"name": "order_by",
"defaultValue": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INPUT_OBJECT",
"name": "user_order_by",
"ofType": null
}
}
},
"description": "sort the rows by one or more columns"
}, {
"name": "where",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_bool_exp",
"ofType": null
},
"description": "filter the rows returned"
}],
"isDeprecated": false,
"deprecationReason": null,
"name": "user_aggregate",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "user_aggregate",
"ofType": null
}
},
"description": "fetch aggregated fields from the table: \"user\""
}, {
"args": [{
"name": "id",
"defaultValue": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "uuid",
"ofType": null
}
},
"description": null
}],
"isDeprecated": false,
"deprecationReason": null,
"name": "user_by_pk",
"type": {
"kind": "OBJECT",
"name": "user",
"ofType": null
},
"description": "fetch data from the table: \"user\" using primary key columns"
}]
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "subscription_root",
"enumValues": null,
"description": "subscription root",
"fields": [{
"args": [{
"name": "distinct_on",
"defaultValue": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "user_select_column",
"ofType": null
}
}
},
"description": "distinct select on columns"
}, {
"name": "limit",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": "limit the number of rows returned"
}, {
"name": "offset",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": "skip the first n rows. Use only with order_by"
}, {
"name": "order_by",
"defaultValue": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INPUT_OBJECT",
"name": "user_order_by",
"ofType": null
}
}
},
"description": "sort the rows by one or more columns"
}, {
"name": "where",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_bool_exp",
"ofType": null
},
"description": "filter the rows returned"
}],
"isDeprecated": false,
"deprecationReason": null,
"name": "user",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "user",
"ofType": null
}
}
}
},
"description": "fetch data from the table: \"user\""
}, {
"args": [{
"name": "distinct_on",
"defaultValue": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "user_select_column",
"ofType": null
}
}
},
"description": "distinct select on columns"
}, {
"name": "limit",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": "limit the number of rows returned"
}, {
"name": "offset",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": "skip the first n rows. Use only with order_by"
}, {
"name": "order_by",
"defaultValue": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INPUT_OBJECT",
"name": "user_order_by",
"ofType": null
}
}
},
"description": "sort the rows by one or more columns"
}, {
"name": "where",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_bool_exp",
"ofType": null
},
"description": "filter the rows returned"
}],
"isDeprecated": false,
"deprecationReason": null,
"name": "user_aggregate",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "user_aggregate",
"ofType": null
}
},
"description": "fetch aggregated fields from the table: \"user\""
}, {
"args": [{
"name": "id",
"defaultValue": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "uuid",
"ofType": null
}
},
"description": null
}],
"isDeprecated": false,
"deprecationReason": null,
"name": "user_by_pk",
"type": {
"kind": "OBJECT",
"name": "user",
"ofType": null
},
"description": "fetch data from the table: \"user\" using primary key columns"
}]
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "user",
"enumValues": null,
"description": "columns and relationships of \"user\"",
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "age",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "id",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "uuid",
"ofType": null
}
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "name",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"description": null
}]
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "user_aggregate",
"enumValues": null,
"description": "aggregated selection of \"user\"",
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "aggregate",
"type": {
"kind": "OBJECT",
"name": "user_aggregate_fields",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "nodes",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "user",
"ofType": null
}
}
}
},
"description": null
}]
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "user_aggregate_fields",
"enumValues": null,
"description": "aggregate fields of \"user\"",
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "avg",
"type": {
"kind": "OBJECT",
"name": "user_avg_fields",
"ofType": null
},
"description": null
}, {
"args": [{
"name": "columns",
"defaultValue": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "user_select_column",
"ofType": null
}
}
},
"description": null
}, {
"name": "distinct",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"description": null
}],
"isDeprecated": false,
"deprecationReason": null,
"name": "count",
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "max",
"type": {
"kind": "OBJECT",
"name": "user_max_fields",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "min",
"type": {
"kind": "OBJECT",
"name": "user_min_fields",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "stddev",
"type": {
"kind": "OBJECT",
"name": "user_stddev_fields",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "stddev_pop",
"type": {
"kind": "OBJECT",
"name": "user_stddev_pop_fields",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "stddev_samp",
"type": {
"kind": "OBJECT",
"name": "user_stddev_samp_fields",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "sum",
"type": {
"kind": "OBJECT",
"name": "user_sum_fields",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "var_pop",
"type": {
"kind": "OBJECT",
"name": "user_var_pop_fields",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "var_samp",
"type": {
"kind": "OBJECT",
"name": "user_var_samp_fields",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "variance",
"type": {
"kind": "OBJECT",
"name": "user_variance_fields",
"ofType": null
},
"description": null
}]
}, {
"inputFields": [{
"name": "avg",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_avg_order_by",
"ofType": null
},
"description": null
}, {
"name": "count",
"defaultValue": null,
"type": {
"kind": "ENUM",
"name": "order_by",
"ofType": null
},
"description": null
}, {
"name": "max",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_max_order_by",
"ofType": null
},
"description": null
}, {
"name": "min",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_min_order_by",
"ofType": null
},
"description": null
}, {
"name": "stddev",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_stddev_order_by",
"ofType": null
},
"description": null
}, {
"name": "stddev_pop",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_stddev_pop_order_by",
"ofType": null
},
"description": null
}, {
"name": "stddev_samp",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_stddev_samp_order_by",
"ofType": null
},
"description": null
}, {
"name": "sum",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_sum_order_by",
"ofType": null
},
"description": null
}, {
"name": "var_pop",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_var_pop_order_by",
"ofType": null
},
"description": null
}, {
"name": "var_samp",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_var_samp_order_by",
"ofType": null
},
"description": null
}, {
"name": "variance",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_variance_order_by",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "user_aggregate_order_by",
"enumValues": null,
"description": "order by aggregate values of table \"user\"",
"fields": null
}, {
"inputFields": [{
"name": "data",
"defaultValue": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INPUT_OBJECT",
"name": "user_insert_input",
"ofType": null
}
}
}
},
"description": null
}, {
"name": "on_conflict",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_on_conflict",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "user_arr_rel_insert_input",
"enumValues": null,
"description": "input type for inserting array relation for remote table \"user\"",
"fields": null
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "user_avg_fields",
"enumValues": null,
"description": "aggregate avg on columns",
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "age",
"type": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
},
"description": null
}]
}, {
"inputFields": [{
"name": "age",
"defaultValue": null,
"type": {
"kind": "ENUM",
"name": "order_by",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "user_avg_order_by",
"enumValues": null,
"description": "order by avg() on columns of table \"user\"",
"fields": null
}, {
"inputFields": [{
"name": "_and",
"defaultValue": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "INPUT_OBJECT",
"name": "user_bool_exp",
"ofType": null
}
},
"description": null
}, {
"name": "_not",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_bool_exp",
"ofType": null
},
"description": null
}, {
"name": "_or",
"defaultValue": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "INPUT_OBJECT",
"name": "user_bool_exp",
"ofType": null
}
},
"description": null
}, {
"name": "age",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "Int_comparison_exp",
"ofType": null
},
"description": null
}, {
"name": "id",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "uuid_comparison_exp",
"ofType": null
},
"description": null
}, {
"name": "name",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "String_comparison_exp",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "user_bool_exp",
"enumValues": null,
"description": "Boolean expression to filter rows from the table \"user\". All fields are combined with a logical 'AND'.",
"fields": null
}, {
"inputFields": null,
"kind": "ENUM",
"possibleTypes": null,
"interfaces": null,
"name": "user_constraint",
"enumValues": [{
"isDeprecated": false,
"deprecationReason": null,
"name": "user_pkey",
"description": "unique or primary key constraint"
}],
"description": "unique or primary key constraints on table \"user\"",
"fields": null
}, {
"inputFields": [{
"name": "age",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "user_inc_input",
"enumValues": null,
"description": "input type for incrementing integer columne in table \"user\"",
"fields": null
}, {
"inputFields": [{
"name": "age",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": null
}, {
"name": "id",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "uuid",
"ofType": null
},
"description": null
}, {
"name": "name",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "user_insert_input",
"enumValues": null,
"description": "input type for inserting data into table \"user\"",
"fields": null
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "user_max_fields",
"enumValues": null,
"description": "aggregate max on columns",
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "age",
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "id",
"type": {
"kind": "SCALAR",
"name": "uuid",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "name",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}]
}, {
"inputFields": [{
"name": "age",
"defaultValue": null,
"type": {
"kind": "ENUM",
"name": "order_by",
"ofType": null
},
"description": null
}, {
"name": "id",
"defaultValue": null,
"type": {
"kind": "ENUM",
"name": "order_by",
"ofType": null
},
"description": null
}, {
"name": "name",
"defaultValue": null,
"type": {
"kind": "ENUM",
"name": "order_by",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "user_max_order_by",
"enumValues": null,
"description": "order by max() on columns of table \"user\"",
"fields": null
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "user_min_fields",
"enumValues": null,
"description": "aggregate min on columns",
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "age",
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "id",
"type": {
"kind": "SCALAR",
"name": "uuid",
"ofType": null
},
"description": null
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "name",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}]
}, {
"inputFields": [{
"name": "age",
"defaultValue": null,
"type": {
"kind": "ENUM",
"name": "order_by",
"ofType": null
},
"description": null
}, {
"name": "id",
"defaultValue": null,
"type": {
"kind": "ENUM",
"name": "order_by",
"ofType": null
},
"description": null
}, {
"name": "name",
"defaultValue": null,
"type": {
"kind": "ENUM",
"name": "order_by",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "user_min_order_by",
"enumValues": null,
"description": "order by min() on columns of table \"user\"",
"fields": null
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "user_mutation_response",
"enumValues": null,
"description": "response of any mutation on the table \"user\"",
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "affected_rows",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
},
"description": "number of affected rows by the mutation"
}, {
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "returning",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "user",
"ofType": null
}
}
}
},
"description": "data of the affected rows by the mutation"
}]
}, {
"inputFields": [{
"name": "data",
"defaultValue": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INPUT_OBJECT",
"name": "user_insert_input",
"ofType": null
}
},
"description": null
}, {
"name": "on_conflict",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_on_conflict",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "user_obj_rel_insert_input",
"enumValues": null,
"description": "input type for inserting object relation for remote table \"user\"",
"fields": null
}, {
"inputFields": [{
"name": "constraint",
"defaultValue": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "user_constraint",
"ofType": null
}
},
"description": null
}, {
"name": "update_columns",
"defaultValue": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "user_update_column",
"ofType": null
}
}
}
},
"description": null
}, {
"name": "where",
"defaultValue": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "user_bool_exp",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "user_on_conflict",
"enumValues": null,
"description": "on conflict condition type for table \"user\"",
"fields": null
}, {
"inputFields": [{
"name": "age",
"defaultValue": null,
"type": {
"kind": "ENUM",
"name": "order_by",
"ofType": null
},
"description": null
}, {
"name": "id",
"defaultValue": null,
"type": {
"kind": "ENUM",
"name": "order_by",
"ofType": null
},
"description": null
}, {
"name": "name",
"defaultValue": null,
"type": {
"kind": "ENUM",
"name": "order_by",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "user_order_by",
"enumValues": null,
"description": "ordering options when selecting data from \"user\"",
"fields": null
}, {
"inputFields": null,
"kind": "ENUM",
"possibleTypes": null,
"interfaces": null,
"name": "user_select_column",
"enumValues": [{
"isDeprecated": false,
"deprecationReason": null,
"name": "age",
"description": "column name"
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "id",
"description": "column name"
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "name",
"description": "column name"
}],
"description": "select columns of table \"user\"",
"fields": null
}, {
"inputFields": [{
"name": "age",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": null
}, {
"name": "id",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "uuid",
"ofType": null
},
"description": null
}, {
"name": "name",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "user_set_input",
"enumValues": null,
"description": "input type for updating data in table \"user\"",
"fields": null
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "user_stddev_fields",
"enumValues": null,
"description": "aggregate stddev on columns",
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "age",
"type": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
},
"description": null
}]
}, {
"inputFields": [{
"name": "age",
"defaultValue": null,
"type": {
"kind": "ENUM",
"name": "order_by",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "user_stddev_order_by",
"enumValues": null,
"description": "order by stddev() on columns of table \"user\"",
"fields": null
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "user_stddev_pop_fields",
"enumValues": null,
"description": "aggregate stddev_pop on columns",
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "age",
"type": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
},
"description": null
}]
}, {
"inputFields": [{
"name": "age",
"defaultValue": null,
"type": {
"kind": "ENUM",
"name": "order_by",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "user_stddev_pop_order_by",
"enumValues": null,
"description": "order by stddev_pop() on columns of table \"user\"",
"fields": null
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "user_stddev_samp_fields",
"enumValues": null,
"description": "aggregate stddev_samp on columns",
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "age",
"type": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
},
"description": null
}]
}, {
"inputFields": [{
"name": "age",
"defaultValue": null,
"type": {
"kind": "ENUM",
"name": "order_by",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "user_stddev_samp_order_by",
"enumValues": null,
"description": "order by stddev_samp() on columns of table \"user\"",
"fields": null
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "user_sum_fields",
"enumValues": null,
"description": "aggregate sum on columns",
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "age",
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"description": null
}]
}, {
"inputFields": [{
"name": "age",
"defaultValue": null,
"type": {
"kind": "ENUM",
"name": "order_by",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "user_sum_order_by",
"enumValues": null,
"description": "order by sum() on columns of table \"user\"",
"fields": null
}, {
"inputFields": null,
"kind": "ENUM",
"possibleTypes": null,
"interfaces": null,
"name": "user_update_column",
"enumValues": [{
"isDeprecated": false,
"deprecationReason": null,
"name": "age",
"description": "column name"
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "id",
"description": "column name"
}, {
"isDeprecated": false,
"deprecationReason": null,
"name": "name",
"description": "column name"
}],
"description": "update columns of table \"user\"",
"fields": null
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "user_var_pop_fields",
"enumValues": null,
"description": "aggregate var_pop on columns",
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "age",
"type": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
},
"description": null
}]
}, {
"inputFields": [{
"name": "age",
"defaultValue": null,
"type": {
"kind": "ENUM",
"name": "order_by",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "user_var_pop_order_by",
"enumValues": null,
"description": "order by var_pop() on columns of table \"user\"",
"fields": null
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "user_var_samp_fields",
"enumValues": null,
"description": "aggregate var_samp on columns",
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "age",
"type": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
},
"description": null
}]
}, {
"inputFields": [{
"name": "age",
"defaultValue": null,
"type": {
"kind": "ENUM",
"name": "order_by",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "user_var_samp_order_by",
"enumValues": null,
"description": "order by var_samp() on columns of table \"user\"",
"fields": null
}, {
"inputFields": null,
"kind": "OBJECT",
"possibleTypes": null,
"interfaces": [],
"name": "user_variance_fields",
"enumValues": null,
"description": "aggregate variance on columns",
"fields": [{
"args": [],
"isDeprecated": false,
"deprecationReason": null,
"name": "age",
"type": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
},
"description": null
}]
}, {
"inputFields": [{
"name": "age",
"defaultValue": null,
"type": {
"kind": "ENUM",
"name": "order_by",
"ofType": null
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "user_variance_order_by",
"enumValues": null,
"description": "order by variance() on columns of table \"user\"",
"fields": null
}, {
"inputFields": null,
"kind": "SCALAR",
"possibleTypes": null,
"interfaces": null,
"name": "uuid",
"enumValues": null,
"description": null,
"fields": null
}, {
"inputFields": [{
"name": "_eq",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "uuid",
"ofType": null
},
"description": null
}, {
"name": "_gt",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "uuid",
"ofType": null
},
"description": null
}, {
"name": "_gte",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "uuid",
"ofType": null
},
"description": null
}, {
"name": "_in",
"defaultValue": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "uuid",
"ofType": null
}
}
},
"description": null
}, {
"name": "_is_null",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"description": null
}, {
"name": "_lt",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "uuid",
"ofType": null
},
"description": null
}, {
"name": "_lte",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "uuid",
"ofType": null
},
"description": null
}, {
"name": "_neq",
"defaultValue": null,
"type": {
"kind": "SCALAR",
"name": "uuid",
"ofType": null
},
"description": null
}, {
"name": "_nin",
"defaultValue": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "uuid",
"ofType": null
}
}
},
"description": null
}],
"kind": "INPUT_OBJECT",
"possibleTypes": null,
"interfaces": null,
"name": "uuid_comparison_exp",
"enumValues": null,
"description": "expression to compare columns of type uuid. All fields are combined with logical 'AND'.",
"fields": null
}],
"mutationType": {
"name": "mutation_root"
}
}
}
},
"actions": [{
"name": "validatedUserInsert",
"definition": {
"output_type": "[UserInfo!]",
"arguments": [{
"name": "user",
"type": "UserInput",
"description": "lolz"
}]
}
}],
"types": {
"enums": [],
"scalars": [],
"input_objects": [{
"name": "UserInput",
"fields": [{
"name": "username",
"type": "String",
"description": "lalz"
},
{
"name": "password",
"type": "String!",
"description": "pass"
}
]
}],
"objects": [{
"name": "UserInfo",
"fields": [{
"name": "accessToken",
"type": "String",
"description": "lolz"
}]
}]
}
};
const fromPayload = {
"sdl": {
"complete": `
type Mutation { actionName1 (arg1: SampleInput!): SampleOutput }
type SampleOutput { accessToken: String! }
input SampleInput { username: String! password: String! }
type Mutation { actionName2 (arg1: SampleInput!): SampleOutput }
`
}
};
module.exports = {
toPayload,
fromPayload
}