Giter Site home page Giter Site logo

Comments (3)

Zaid-Ajaj avatar Zaid-Ajaj commented on June 12, 2024

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.

etareduction avatar etareduction commented on June 12, 2024

@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.

Zaid-Ajaj avatar Zaid-Ajaj commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.