Skip to content

Commit

Permalink
feat: updating graphql schema
Browse files Browse the repository at this point in the history
  • Loading branch information
pbastia committed Dec 9, 2020
1 parent a6cb0e5 commit d4a3bc3
Show file tree
Hide file tree
Showing 2 changed files with 130 additions and 0 deletions.
35 changes: 35 additions & 0 deletions app/server/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4819,6 +4819,30 @@ type CreateReviewCommentPayload {
): ReviewCommentsEdge
}

"""All input for the `currentTimestamp` mutation."""
input CurrentTimestampInput {
"""
An arbitrary string value with no semantic meaning. Will be included in the
payload verbatim. May be used to track mutations by the client.
"""
clientMutationId: String
}

"""The output of our `currentTimestamp` mutation."""
type CurrentTimestampPayload {
"""
The exact same `clientMutationId` that was provided in the mutation input,
unchanged and unused. May be used by a client to track mutations.
"""
clientMutationId: String
datetime: Datetime

"""
Our root query field type. Allows us to run any query from our mutation payload.
"""
query: Query
}

"""A location in a connection that can be used for resuming pagination."""
scalar Cursor

Expand Down Expand Up @@ -8838,6 +8862,17 @@ type Mutation {
input: CreateReviewCommentMutationChainInput!
): CreateReviewCommentMutationChainPayload

"""
Returns the current date and time with time zone.
This should be used instead of the native current_timestamp function to allow for mocking in test and development settings
"""
currentTimestamp(
"""
The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.
"""
input: CurrentTimestampInput!
): CurrentTimestampPayload

"""Deletes a single `Application` using its globally unique id."""
deleteApplication(
"""
Expand Down
95 changes: 95 additions & 0 deletions app/server/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -29177,6 +29177,33 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "currentTimestamp",
"description": "Returns the current date and time with time zone.\nThis should be used instead of the native current_timestamp function to allow for mocking in test and development settings",
"args": [
{
"name": "input",
"description": "The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INPUT_OBJECT",
"name": "CurrentTimestampInput",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "CurrentTimestampPayload",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "deleteApplication",
"description": "Deletes a single `Application` using its globally unique id.",
Expand Down Expand Up @@ -37850,6 +37877,74 @@
"enumValues": null,
"possibleTypes": null
},
{
"kind": "INPUT_OBJECT",
"name": "CurrentTimestampInput",
"description": "All input for the `currentTimestamp` mutation.",
"fields": null,
"inputFields": [
{
"name": "clientMutationId",
"description": "An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client.",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
}
],
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "CurrentTimestampPayload",
"description": "The output of our `currentTimestamp` mutation.",
"fields": [
{
"name": "clientMutationId",
"description": "The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations.",
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "datetime",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "Datetime",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "query",
"description": "Our root query field type. Allows us to run any query from our mutation payload.",
"args": [],
"type": {
"kind": "OBJECT",
"name": "Query",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "INPUT_OBJECT",
"name": "DeleteApplicationInput",
Expand Down

0 comments on commit d4a3bc3

Please sign in to comment.