Download goalert/graphql2/graph/gqlapikeys.graphqls from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 887 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/goalert/graphql2/graph/gqlapikeys.graphqls
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/goalert/graphql2/graph/gqlapikeys.graphqls
-
curl -L -o gqlapikeys.graphqls https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/goalert/graphql2/graph/gqlapikeys.graphqls
887 Bytes
| extend type Query { | |
| gqlAPIKeys: [GQLAPIKey!]! | |
| } | |
| extend type Mutation { | |
| createGQLAPIKey(input: CreateGQLAPIKeyInput!): CreatedGQLAPIKey! | |
| updateGQLAPIKey(input: UpdateGQLAPIKeyInput!): Boolean! | |
| deleteGQLAPIKey(id: ID!): Boolean! | |
| } | |
| type CreatedGQLAPIKey { | |
| id: ID! | |
| token: String! | |
| } | |
| input CreateGQLAPIKeyInput { | |
| name: String! | |
| description: String! | |
| expiresAt: ISOTimestamp! | |
| role: UserRole! | |
| query: String! | |
| } | |
| input UpdateGQLAPIKeyInput { | |
| id: ID! | |
| name: String | |
| description: String | |
| } | |
| type GQLAPIKey { | |
| id: ID! | |
| name: String! | |
| description: String! | |
| createdAt: ISOTimestamp! | |
| createdBy: User @goField(forceResolver: true) | |
| updatedAt: ISOTimestamp! | |
| updatedBy: User @goField(forceResolver: true) | |
| lastUsed: GQLAPIKeyUsage | |
| expiresAt: ISOTimestamp! | |
| query: String! | |
| role: UserRole! | |
| } | |
| type GQLAPIKeyUsage { | |
| time: ISOTimestamp! | |
| ua: String! | |
| ip: String! | |
| } | |