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

entgql: add support for clearing non-unique edges #418

Merged
merged 1 commit into from
Dec 16, 2022
Merged
Show file tree
Hide file tree
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
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