You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, Vesper looks like a useful framework, and I'm trying to use it for my app. However, I can't figure out how to implement Relay-compatible connections in my resolvers; the type signature seems to expect that I will return either a list of database entities, or a promise that returns that. Instead, I need to return a plain JavaScript object with at least the following information:
where entity is the database entity, and encodeCursor is a function that returns a cursor string so that a subsequent API call can paginate starting from that entity.
Is it possible to do this? And if so, how? Can you provide a code example? I'm happy to provide my code, if you need.
The text was updated successfully, but these errors were encountered:
Hi there, Vesper looks like a useful framework, and I'm trying to use it for my app. However, I can't figure out how to implement Relay-compatible connections in my resolvers; the type signature seems to expect that I will return either a list of database entities, or a promise that returns that. Instead, I need to return a plain JavaScript object with at least the following information:
where
entity
is the database entity, andencodeCursor
is a function that returns a cursor string so that a subsequent API call can paginate starting from that entity.Is it possible to do this? And if so, how? Can you provide a code example? I'm happy to provide my code, if you need.
The text was updated successfully, but these errors were encountered: