RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cline rules/ericchaves/vibe-graphql-demo

Cline rules

.clinerules/strawberry_graphql_guidelines.md
Cline rules

Quality

48/100

Scores the file, not the repository.

Length

242 words

8 headings · 0 code blocks

Repository

0

— · pushed 452 days ago

Last changed

2 days ago

First indexed 2 days ago.
ericchaves/vibe-graphql-demo/.clinerules/strawberry_graphql_guidelines.mdRawGitHub
1# Strawberry GraphQL Guidelines for GraphQL Filter Demo
2 
3This document outlines the guidelines for using the Strawberry library and implementing the GraphQL schema for the GraphQL Filter Demo project.
4 
5## Schema First Approach
6 
7* Define the GraphQL schema using Strawberry's type hinting and decorators.
8* Prioritize clarity and maintainability in the schema definition.
9 
10## VisitaType Consolidation
11 
12* 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.
14 
15## InputFilter Implementation
16 
17* 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.
20 
21## Resolvers
22 
23* 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.
26 
27## Error Handling
28 
29* Implement proper error handling within resolvers.
30* Return meaningful GraphQL errors for issues like invalid input or database errors.
31 
32## Input Validation
33 
34* Utilize Strawberry's features or implement custom logic for validating input arguments, especially in filters.
35 
36## Naming Conventions
37 
38* Follow standard GraphQL naming conventions (PascalCase for types, camelCase for fields).
39* Align GraphQL field names with the consolidated `VisitaType` representation.
40 

Sections

  • Strawberry GraphQL Guidelines for GraphQL Filter Demo
  • Schema First Approach
  • VisitaType Consolidation
  • InputFilter Implementation
  • Resolvers
  • Error Handling
  • Input Validation
  • Naming Conventions

What it covers

code-styletypesdatabaseapi

Stack — with the evidence

python

(1.00)

fastapi

(0.70)

Format

Cline rules

A single file or a folder of files, all always-on. The folder form is the simplest way any format here lets you split rules into topics without also learning an activation model.

What the corpus says about it

Repository

Owner
ericchaves
Language
—
License
—
Archived
no

All configs in this repo

Also in ericchaves/vibe-graphql-demo

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
ericchaves/vibe-graphql-demo.clinerules/project_workflow.md · 0Cline rulespythonfastapisetupteststylegit+376/1002 days ago
ericchaves/vibe-graphql-demo.clinerules/python_best_practices.md · 0Cline rulespythonfastapitestlint-formatstyletypes+356/1002 days ago
ericchaves/vibe-graphql-demo.clinerules/sqlite_data_modeling.md · 0Cline rulespythonfastapitypesdatabaseapi44/1002 days ago
Diff against .clinerules/project_workflow.md Diff against .clinerules/python_best_practices.md Diff against .clinerules/sqlite_data_modeling.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
u9401066/zotero-keeper.clinerules/50-pubmed-project.md · 6Cline rulespytestruff+6testlint-formatstylearch+194/1003 days ago
u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/50-pubmed-project.md · 6Cline rulespytestruff+6testlint-formatstylearch+194/1003 days ago
u9401066/pubmed-search-mcp.clinerules/50-pubmed-project.md · 23Cline rulespythondocker+4testlint-formatstylearch+194/1003 days ago
ryok/python-boilerplate.clinerules/common-commands.md · 0Cline rulespythonruff+2setupbuildtestlint-format+390/1002 days ago
u9401066/pubmed-search-mcp.clinerules/00-project.md · 23Cline rulespythondocker+4testlint-formatstylearch+186/1003 days ago
u9401066/pubmed-search-mcp.clinerules/60-pubmed-python.md · 23Cline rulespythondocker+4setuptestlint-formatstyle+286/1003 days ago
u9401066/zotero-keeper.clinerules/60-pubmed-python.md · 6Cline rulespytestruff+6setuptestlint-formatstyle+286/1003 days ago
u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/60-pubmed-python.md · 6Cline rulespytestruff+6setuptestlint-formatstyle+286/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack