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
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...
@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?
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.
So we can organize queries in folders like
query
andmutation
The text was updated successfully, but these errors were encountered: