This is a minor styling bug I noticed in the queries that are generated by the @graphback/codegen-client plugin.
This does not affect functionality in any way, but would be nice to get fixed.
query findNotes($filter: NoteFilter, $page: PageRequest, $orderBy: OrderByInput) {
findNotes(filter: $filter, page: $page, orderBy: $orderBy) {
items {
...NoteExpandedFields
}
offset
limit
count
}
- }
+}
From the templates/ts-react-apollo-client directory, run yarn graphback generate.
Note, that you need to change the path of extensions.graphback.model in the .graphqlrc file to point to a valid model file (this one).
Automatically generated comment to notify maintainers
/cc @machi1990, @wtrocki
Hi, I would like to take this issue can you guide me in right direction.
Hi @shivambhatia5432 - the issue description should hopefully have enough information for you to get started. The best thing to do is understand what Graphback does by looking at our docs.
This issue specifically is located in the ClientCRUD Plugin. You can find this in the graphback-codegen-client package in this repo.
Thank you for offering to contribute!
Hi, can you please elaborate the issue I am on exact same line and file you are talking about, I cannot understand meaning of " to be inline with q." as I am not able to generate Graphback query.
Thanks for assigning me this issue.
Are you in the graphback.graphql file? This file is generated when you run yarn graphback generate from the template. The ClientCRUDPlugin is a plugin which generates this code and writes it to the graphback.graphql file.
I cannot understand meaning of " to be inline with q.
Sorry, I should be more clear. The closing bracket should be at the same indentation level as the q from the start of query findNotes.
The query templates are created in https://github.com/aerogear/graphback/blob/f8ab9f3cf4a8fe58379a0eac1655f0e9c825d82b/packages/graphback-codegen-client/src/templates/gqlTemplates.ts

Issue while running yarn graphback generate
Templates are in the workspace. You need to issue this command in the actual template folder.
Generate generates only in single template etc.
I think I have corrected the issue please check at pull request #2107 , this is my first open source contribution so thank you for helping me and I would love to contribute more to your organisation.
@shivambhatia5432 Thank you for creating that. You can always join our community chat if you have any questions: https://discord.com/invite/mJ7j84m
Hey! Is someone still working on this issue? If not then I'd like to try and solve it.
@RinkiyaKeDad Feel free to start working on it. Also see code and other points that were made above.
I've updated the issue description with a guide on how to test your changes.
Fixed by @RinkiyaKeDad in #2130 - amazing work man!
Thanks for guiding me @craicoverflow @wtrocki @machi1990 :))
Our pleasure, thanks for the great contribution @RinkiyaKeDad . Looking forward to many more from you ;-)
Most helpful comment
Fixed by @RinkiyaKeDad in #2130 - amazing work man!