forked from root/public
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
2.7 KiB
101 lines
2.7 KiB
{ |
|
"search": [ |
|
"[user!]!", |
|
"[object!]!", |
|
"[transaction!]!", |
|
"[progress!]!", |
|
"[result!]!", |
|
"query", |
|
"arguments" |
|
], |
|
"root_types": [{ "query": "query" }, { "arguments": "arguments" }], |
|
"query": { |
|
"user": "[user!]!", |
|
"object": "[object!]!", |
|
"transaction": "[transaction!]!", |
|
"progress": "[progress!]!", |
|
"result": "[result!]!" |
|
}, |
|
"types": [ |
|
{ |
|
"user": { |
|
"id": "ID!", |
|
"attrs": "Jsonb!", |
|
"createdAt": "String!", |
|
"discordDMChannelId": "String!", |
|
"discordId": "String!", |
|
"discordLogin": "String!", |
|
"githubId": "String!", |
|
"githubLogin": "String!", |
|
"profile": "Jsonb!", |
|
"updatedAt": "String!" |
|
}, |
|
"comment": "Fetch data from the table: \"user\"\nThis table will have information about the user" |
|
}, |
|
{ |
|
"object": { |
|
"id": "ID!", |
|
"attrs": "Jsonb!", |
|
"authorId": "String!", |
|
"childrenAttrs": "String!", |
|
"createdAt": "String!", |
|
"externalRelationUrl": "String!", |
|
"name": "String!", |
|
"type": "String!", |
|
"status": "String!", |
|
"updatedAt": "String!" |
|
}, |
|
"comment": "Fetch data from the table: \"object\"\nThis table will give you information about all objects (exercises/projects)" |
|
}, |
|
{ |
|
"transaction": { |
|
"id": "ID!", |
|
"attrs": "Jsonb!", |
|
"amount": "Int!", |
|
"createdAt": "String!", |
|
"type": "String!", |
|
"userId": "Int!" |
|
}, |
|
"comment": "Fetch data from the table: \"transaction\"\nThis table will give you access to XP and audits ratio" |
|
}, |
|
{ |
|
"progress": { |
|
"id": "ID!", |
|
"attrs": "Jsonb!", |
|
"bestResultId": "Int!", |
|
"createdAt": "String!", |
|
"eventId": "Int!", |
|
"groupId": "Int!", |
|
"objectId": "Int!", |
|
"updatedAt": "String!", |
|
"userId": "Int!" |
|
}, |
|
"comment": "Fetch data from the table: \"progress\"\nBoth progress and result table will give you the student progression" |
|
}, |
|
{ |
|
"result": { |
|
"id": "ID!", |
|
"progressId": "Int!", |
|
"attrs": "Jsonb!", |
|
"createdAt": "String!", |
|
"grade": "Int!", |
|
"updatedAt": "String!" |
|
}, |
|
"comment": "Fetch data from the table: \"result\"\nBoth progress and result table will give you the student progression" |
|
} |
|
], |
|
"arguments": { |
|
"where": { |
|
"description": "bool_exp", |
|
"comment": "filter the rows returned" |
|
}, |
|
"order_by": { |
|
"description": "[order_by!]", |
|
"comment": "sort the rows by one or more columns" |
|
}, |
|
"limit": { |
|
"description": "Int", |
|
"comment": "limit the number of rows returned" |
|
} |
|
} |
|
}
|
|
|