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
To migrate the public API to new sessions/errors queries, follow these steps based on the schema.resolvers.go file in the highlight/highlight repository:
Identify Existing Session and Error Query Resolvers: Review the current GraphQL schema definitions and resolver implementations related to sessions and errors. Look for functions like Session, ErrorGroup, and ErrorObject resolvers.
Define New GraphQL Queries: In your schema definition file (not provided), add new GraphQL query types for the sessions and errors that match your new requirements.
Implement New Resolvers: Based on the new query definitions, implement resolver functions in schema.resolvers.go. Use existing resolvers as a reference for accessing the database and formatting the response.
Update Resolver Functions: For sessions and errors, update the resolver functions to fetch and return data according to the new query parameters and structures. Refer to functions like Session, ErrorGroupResolver, and ErrorObjectResolver for patterns on handling database interactions and response formatting.
Test Your Changes: Ensure that your new queries and resolvers work as expected by writing and running tests. This step is crucial for validating the functionality and performance of the new API endpoints.
Remember to review and possibly refactor related parts of the codebase that might be affected by these changes, such as frontend queries or other backend services that consume the modified API.
No description provided.
The text was updated successfully, but these errors were encountered: