Dhruv Parmar

API Support

Facing any issues with the API? Share them here
387 views

Add a comment

Replies

Best
Rishi
@dhruvparmar Hey Dhruv! What exactly is the use of 'clientMutationId' in goalCreate/Update mutations? It seems to work even if it is null. Are there any examples? Sorry, new to GQL.
Dhruv Parmar
@wayfarerish hey "clientMutationId" is a unique identifier used to track the mutation. In most cases this is not required so you can ignore it. Read more here https://facebook.github.io/relay...
Rishi
@dhruvparmar thank you!
Rishi
@dhruvparmar hey @dhruvparmar! does the goals API return 20 goals at a time? what is the page size? I sometimes get 19, sometimes 20. Also, how/when does the 'current' flag get set? my first guess was when you add a goal via "Working Now" feature but somehow that feature never works for me so can't test. It always throws a blank page when I click "Join Them" button.
Dhruv Parmar
@wayfarerish hey, the default page size for all connections is 20. You might be getting 19 if total goals are < 20 (depending on the connection filter params). The 'current' flag is set when a user goes into focus mode for a Goal. You should be able to try that out in the extension here https://chrome.google.com/websto...
Rishi
@dhruvparmar thanks, will check that out...then I think it *might* be an edge case bug because I randomly get 19/20 when I have exactly 20 goals 🤔
First
Previous
•••
345