-
Notifications
You must be signed in to change notification settings - Fork 149
Add UpdateURL to graphql schema and resolvers #654
Add UpdateURL to graphql schema and resolvers #654
Conversation
@@ -20,6 +20,8 @@ type AuthQuery { | |||
|
|||
type AuthMutation { | |||
createURL(url: URLInput!, isPublic: Boolean!): URL | |||
updateURL(alias: String!, url: URLInput!, isPublic: Boolean): URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll have to discuss the isPublic
parameter in the future.
Hi @oatovar , thank you very much for working on this feature! I think you need to add GraphQL schema with resolvers. Please resolve PR conflicts! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see my previous comment.
@byliuyang thank you for the feedback. I will take a look at the resolvers and fix the PR conflicts. |
@oatovar I recommend we open PRs in the direction of dependency graph:
|
@byliuyang I went with the solution that you recommend in #239. Please let me know where I can improve. Thank you! |
* Add `URLUpdater` to url usecase * Update dependency injection and generated code * Update go module checksum
* Update UpdateURL args to satisfy schema changes. * Clean up code layout
* Update schema to allow flexible changes i.e. one field or multiple fields * Fix url `UPDATE` statement * Remove `external` package imports * Update dependency checksums
* Fix merge conflicts * Tidy up go.sum
* Reduce URL input types to one for reuse * Update CreateURL to use refactored URL input. * Cleanup update creation so that it only runs at one level of abstraction. * Update `wire_gen.go`
Closing and making new PR. |
Update GraphQL Schema's AuthMutation to include
updateURL
.Refactor to use single
UrlInput
in bothupdateURL
andcreateURL
.Regenerate wired dependencies.