feat: Integrate Data Connect and Implement Staff List View Directory
This commit is contained in:
44
backend/dataconnect/example/level/queries.gql
Normal file
44
backend/dataconnect/example/level/queries.gql
Normal file
@@ -0,0 +1,44 @@
|
||||
query listLevels @auth(level: USER) {
|
||||
levels {
|
||||
id
|
||||
name
|
||||
xpRequired
|
||||
icon
|
||||
colors
|
||||
createdAt
|
||||
updatedAt
|
||||
createdBy
|
||||
}
|
||||
}
|
||||
|
||||
query getLevelById($id: UUID!) @auth(level: USER) {
|
||||
level(id: $id) {
|
||||
id
|
||||
name
|
||||
xpRequired
|
||||
icon
|
||||
colors
|
||||
createdAt
|
||||
updatedAt
|
||||
createdBy
|
||||
}
|
||||
}
|
||||
|
||||
query filterLevels(
|
||||
$name: String
|
||||
$xpRequired: Int
|
||||
) @auth(level: USER) {
|
||||
levels(
|
||||
where: {
|
||||
name: { eq: $name }
|
||||
xpRequired: { eq: $xpRequired }
|
||||
}
|
||||
) {
|
||||
id
|
||||
name
|
||||
xpRequired
|
||||
icon
|
||||
colors
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user