Skip to content

Commit

Permalink
entgql: add support for clearing non-unique edges
Browse files Browse the repository at this point in the history
  • Loading branch information
a8m committed Dec 16, 2022
1 parent 4a57f9a commit fb76e81
Show file tree
Hide file tree
Showing 22 changed files with 1,072 additions and 250 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
run:
go: '1.19'
timeout: 3m
timeout: 10m

linters-settings:
gosec:
Expand Down
20 changes: 12 additions & 8 deletions entgql/internal/todo/ent.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -590,17 +590,18 @@ Input was generated by ent.
input UpdateCategoryInput {
text: String
status: CategoryStatus
clearConfig: Boolean
config: CategoryConfigInput
clearDuration: Boolean
clearConfig: Boolean
duration: Duration
clearCount: Boolean
clearDuration: Boolean
count: Uint64
clearStrings: Boolean
clearCount: Boolean
strings: [String!]
appendStrings: [String!]
clearStrings: Boolean
addTodoIDs: [ID!]
removeTodoIDs: [ID!]
clearTodos: Boolean
}
"""
UpdateTodoInput is used for update Todo object.
Expand All @@ -610,27 +611,30 @@ input UpdateTodoInput {
status: TodoStatus
priority: Int
text: String
clearInit: Boolean
init: Map
clearParent: Boolean
clearInit: Boolean
parentID: ID
clearParent: Boolean
addChildIDs: [ID!]
removeChildIDs: [ID!]
clearSecret: Boolean
clearChildren: Boolean
secretID: ID
clearSecret: Boolean
}
"""
UpdateUserInput is used for update User object.
Input was generated by ent.
"""
input UpdateUserInput {
name: String
clearPassword: Boolean
password: String
clearPassword: Boolean
addGroupIDs: [ID!]
removeGroupIDs: [ID!]
clearGroups: Boolean
addFriendIDs: [ID!]
removeFriendIDs: [ID!]
clearFriends: Boolean
}
type User implements Node {
id: ID!
Expand Down
16 changes: 16 additions & 0 deletions entgql/internal/todo/ent/gql_mutation_input.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fb76e81

Please sign in to comment.