Return objects #60
Replies: 4 comments
-
|
https://think-it.io/insights/GraphQL-best-practice Designing a GraphQL schema with flexibility and scalability in mind involves several key principles that ensure the schema can grow and adapt to changing requirements while maintaining performance and usability.
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
https://graphql.org/learn/response/ Here are also a few key points about GraphQL response formats:
|
Beta Was this translation helpful? Give feedback.
-
Best Practices for Structuring GraphQL Request Responses:Always return objects, not simple values ❌ Avoid this: ✅ Prefer this: 📃 Pagination Pattern (Relay-style ou Offset-based)For large lists, use a consistent pagination pattern
🪲Tratamento consisitente de erros
🗣️Nameing convention (camelCase)
🌎Centralização de objetos de resposta padrãoIt's a good practice to define types like |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Proposal for discussion of what our return objects could be, following the best language practices.
This discussion item is related to #47.
Beta Was this translation helpful? Give feedback.
All reactions