-
Notifications
You must be signed in to change notification settings - Fork 3
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
refactor has-resource graphql #757
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/manifold/ui/7w5m0pmos |
const { data } = await this.graphqlFetch<ResourceByLabelQuery & FirstResourceQuery>({ | ||
query: label ? resourceByLabelQuery : firstResourceQuery, | ||
variables, |
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.
I feel like this should be a |
type, but it doesn't like that 🤔
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.
Oh you can’t put a |
in an object assignment here. You’d have to do { variables }: { variables: ResourceByLabelQueryVariables | FirstResourceQueryVariables }
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.
I mean for this type this.graphqlFetch<ResourceByLabelQuery & FirstResourceQuery>
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.
Oh gotcha. Yeah agree; not sure why that doesn’t work
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.
@sslotsky do you have any thoughts on this before I merge?
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.
I see you've got a full calendar for most of the day, just going to merge but let me know if you have any follow up suggestions
Reason for change
Testing
Checklist