Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(graphql): correct syntax for general and user fields #161

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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