-
Notifications
You must be signed in to change notification settings - Fork 106
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
feat: add spotify http guide #87
Conversation
e049b60
to
09699bb
Compare
Yet another example of fetching, this time, we will shift our focus on how we can handle pagination with Tailcall. The `tracks` field of the `Album` type returns a `TrackPage` type. This type is an implementation of the `Page` interface. The `Page` interface is implemented by both `TrackPage` and `AlbumPage` types. This allows us to use the `Page` interface as a return type for our `tracks` field. This is how the query schema looks like: | ||
|
||
```graphql showLineNumbers | ||
getTracksOfAlbum(id: String!, limit: Int!, offset: Int!, accessToken: String!): TrackPage |
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.
- This is not valid GraphQL syntax.
- We should use
@http
on thetracks
field ofAlbum
so that we can see a relation.
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.
@tusharmath would you let me know what's not correct about the GraphQL syntax? I'm not sure I fully understand the problem.
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.
It's a directive, it needs to be attached to some type.
@rajdip-b Let me know if you are still on this. |
Hey @tusharmath, yes I'm still available for this. Was totally occupied yesterday. I'm planning to get started with the changes from today. |
@rajdip-b Closing this for now. Please feel free to reopen when you think it's ready. |
Sure |
No description provided.