Cline rules
.clinerules/strawberry_graphql_guidelines.mdCline rules
Quality
48/100
Scores the file, not the repository.Length
242 words
8 headings · 0 code blocksRepository
0
— · pushed 452 days agoLast changed
2 days ago
First indexed 2 days ago.1# Strawberry GraphQL Guidelines for GraphQL Filter Demo23This document outlines the guidelines for using the Strawberry library and implementing the GraphQL schema for the GraphQL Filter Demo project.45## Schema First Approach67* Define the GraphQL schema using Strawberry's type hinting and decorators.8* Prioritize clarity and maintainability in the schema definition.910## VisitaType Consolidation1112* The API will expose a single `VisitaType` that consolidates relevant fields from the `FatoVisitas` and all dimension tables.13* Avoid exposing the underlying data warehouse structure directly to API consumers.1415## InputFilter Implementation1617* Define generic `InputFilter` types for common data types (String, Int, DateTime, etc.).18* Use these generic filters to build the `VisitaFilterInput`.19* Ensure the filter logic in the backend correctly translates these filters to SQL `WHERE` clauses on the appropriate dimension table columns.2021## Resolvers2223* Implement efficient resolvers for the `getVisitas` query.24* The resolver should handle the database connection, SQL query construction (including necessary JOINs), and data mapping to `VisitaType`.25* Optimize queries to minimize database calls, especially when fetching related dimension data.2627## Error Handling2829* Implement proper error handling within resolvers.30* Return meaningful GraphQL errors for issues like invalid input or database errors.3132## Input Validation3334* Utilize Strawberry's features or implement custom logic for validating input arguments, especially in filters.3536## Naming Conventions3738* Follow standard GraphQL naming conventions (PascalCase for types, camelCase for fields).39* Align GraphQL field names with the consolidated `VisitaType` representation.40
Also in ericchaves/vibe-graphql-demo
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| ericchaves/vibe-graphql-demo.clinerules/project_workflow.md · 0 | Cline rules | setupteststylegit+3 | 76/100 | 2 days ago | |
| ericchaves/vibe-graphql-demo.clinerules/python_best_practices.md · 0 | Cline rules | testlint-formatstyletypes+3 | 56/100 | 2 days ago | |
| ericchaves/vibe-graphql-demo.clinerules/sqlite_data_modeling.md · 0 | Cline rules | typesdatabaseapi | 44/100 | 2 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| u9401066/zotero-keeper.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| u9401066/pubmed-search-mcp.clinerules/50-pubmed-project.md · 23 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| ryok/python-boilerplate.clinerules/common-commands.md · 0 | Cline rules | setupbuildtestlint-format+3 | 90/100 | 2 days ago | |
| u9401066/pubmed-search-mcp.clinerules/00-project.md · 23 | Cline rules | testlint-formatstylearch+1 | 86/100 | 3 days ago | |
| u9401066/pubmed-search-mcp.clinerules/60-pubmed-python.md · 23 | Cline rules | setuptestlint-formatstyle+2 | 86/100 | 3 days ago | |
| u9401066/zotero-keeper.clinerules/60-pubmed-python.md · 6 | Cline rules | setuptestlint-formatstyle+2 | 86/100 | 3 days ago | |
| u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/60-pubmed-python.md · 6 | Cline rules | setuptestlint-formatstyle+2 | 86/100 | 3 days ago |
