Comments (3)
The generated F# query and mutation files are created one-to-one from the GraphQL query files in a flat manner. If I add something like this, there is a chance that file names can collide when there are queries with the same name in different sub-directories.
I am leaning more towards keeping things simple as they are right now and if you need better namespacing, maybe consider adding a suffix or prefix to your query document names i.e. Query_Search.gql
, Mutation_UpdateUser.gql
etc.
Not the prettiest but should work well in IDEs when you start typing Mutation...
or Query...
from snowflaqe.
@Zaid-Ajaj Would placing generated types for different subdirectories in separate dotnet namespaces help with that, or is it too much effort in current implementation?
from snowflaqe.
I think that complicates things a lot 😞 would rather keep the file structure as is right now. It is also possible to generate multiple projects from the same schema having different queries or mutations in each project.
from snowflaqe.
Related Issues (20)
- Extensions of a response HOT 1
- Handling of double-quoted Descriptions in SDL HOT 6
- Schema with unions throws NullReferenceException HOT 5
- Exception when using custom scalars inside .graphql schema HOT 5
- Use Templatus for F# code generation HOT 1
- Problems when using generated input types from Hasura backend HOT 10
- GraphQLParser.dll is missing from Snowflaqe.Tasks nugget package HOT 7
- Publish packages to GitHub Packages and NuGet automatically HOT 3
- Escape F# keywords in output HOT 6
- Add support for `.graphql` extension files HOT 1
- Config options to set headers for introspection query HOT 5
- Escape reserved keywords with backticks HOT 2
- Manage JSONB fields HOT 2
- Hoist and reuse field types HOT 2
- The description of ENUM kind is not normalized.
- Adding new F# keyword "fixed" HOT 1
- Project file still gets created when "createProjectFile": false
- Bad API behaviour results in uncaught errors HOT 5
- Meta: Maintenance plans HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snowflaqe.