Skip to content

Commit

Permalink
fix(graphql): correct syntax for general and user fields (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanlce authored Dec 21, 2024
1 parent 07862e3 commit 742e185
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions graphql/root_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type Query {
numberUsers: Int!
# jsonStorage get given paths from user related json storage. Empty paths is to get all. Refer to https://github.com/tidwall/gjson
jsonStorage(paths: [String!]): [String!]! @hasRole(role: ADMIN)
user(): User! @hasRole(role: ADMIN)
user: User! @hasRole(role: ADMIN)
configFlatDesc: [ConfigFlatDesc!]! @hasRole(role: ADMIN)
configs(id: ID, selected: Boolean): [Config!]! @hasRole(role: ADMIN)
dnss(id: ID, selected: Boolean): [Dns!]! @hasRole(role: ADMIN)
Expand All @@ -40,7 +40,7 @@ type Query {
groups(id: ID): [Group!]! @hasRole(role: ADMIN)
group(name: String!): Group! @hasRole(role: ADMIN)
nodes(id: ID, subscriptionId: ID, first: Int, after: ID): NodesConnection! @hasRole(role: ADMIN)
general(): General! @hasRole(role: ADMIN)
general: General! @hasRole(role: ADMIN)
}
type Mutation {
# createUser creates a user if there is no user.
Expand Down Expand Up @@ -145,7 +145,7 @@ type Mutation {
removeGroup(id: ID!): Int! @hasRole(role: ADMIN)
}
enum Role {
admin
ADMIN
}
input ImportArgument {
link: String!
Expand Down

0 comments on commit 742e185

Please sign in to comment.