-
Notifications
You must be signed in to change notification settings - Fork 14
Move graphql folder out of src #85
Comments
Are you proposing that the |
@DevanB, sorry for a vague explanation. Indeed, I am proposing that we remove the |
Hey @maticzav 👋, I like your proposal, does the
I added a
What do you think? |
@Weakky the first option seems excellent. I like the separation of concepts and folder names do their job very well. I also added my initial idea below, but I think your suggestion might do an even better job. Could you maybe also add the
I think it would be fascinating to compare the folder structure of Yoga alongside NextJS and GatsbyJS which I believe will be used most frequently together. |
little disclaimer: i just stumbled across this repo and i'm quite interested in this, so maybe you already considered my thoughts on this 😄. Anyway thank you for creating such beautiful and fun to use GraphQL solutions 👍 . @Weakky you can see in @maticzav reply that he also separates yoga-server from the graphql folder. My proposal would be to give the developer the freedom of choosing where certain modules of his yoga2 application can be found. 'Hardcoding' paths and names like the parent folder 'graphql' seems reasonable at first, however we can't ever be sure that a developer would name this folder exactly this way and keep this folder structure for each project he has (See the False consensus effect). For example: a developer could or might want to for example also just call this parent folder I think default values are fine for people which don't want to configure a lot or just use the boilerplate to get started, but quite a lot of people tend to customize stuff. My approach on one of my projects with graphql-yoga for example:
I try to make clear that each developer might think different in this 😄 |
I have mixed opinion about having
src
folder becausenext
omits that all together as well and it seems genuinely clearer for a framework with a fixed structure. I don't know whether this might be important for TS to work as expected, but I believe it is possible to get that running as well.I believe it would be really cool if you could have Next and Yoga, for example, in the same folder and simply have
pages
andgraphql
folder. Havingsrc
folder for Yoga kind of brakes that because then there’s thissrc
which adds to the vagueness of where to start reading the source. The idea of having all of them in the same folder sounds very nostalgic to all the great features of GraphCool which I believe attracted many other people as well.cc @schickling
The text was updated successfully, but these errors were encountered: