gorm-graphql
gorm-graphql copied to clipboard
Build configuration not working with a default application forge project
Heya, I'm trying to take an old grails 3 app using the graphql plugin and update it to a current app generated with the defaults (grails 5.2.5 web profile) of application forge without success.
Here is a link to the project with a single domain class https://github.com/Cortrah/gql-plugin-test
The instructions say to add this to the depedencies compile "org.grails.plugins:gorm-graphql-plugin:2.0.0"
Apparently changes in gradle seem to imply that this should now be compileOnly "org.grails.plugins:gorm-graphql-plugin:2.0.0"
I've also tried this slightly later version without success compileOnly "org.grails.plugins:gorm-graphql-plugin:2.0.2.BUILD-SNAPSHOT"
The basic web scaffolding works for the domain class, just not the graphql endpoint or the graphiql link.
looking at the installed plugins list from the home page doesn't list the graphql plugin and http://localhost:8080/graphql/browser returns a 404
Any thoughts or directions for me to investigate would be appreciated.
Thanks!
@Cortrah yea, I'm afraid this plugin hasn't been maintained alongside the more recent Grails/GORM updates. @puneetbehl do you know if there is any intention of keeping this plugin alive? I'm guessing there isn't many/any people available to continue working on it.
I should mention that it does work still with grails 4, so those of us who are using it can still use a supported version of grails in the meantime. I must compliment it as well, I've yet to see anything as enjoyable to use for modeling ones graphql data without having to pay for some content management interface.
I've yet to see anything as enjoyable to use for modeling ones graphql data
Couldn't agree more. I really wish the Micronaut team could come up with a way to replicate this plugin on top of Micronaut Data. If I was still using Grails/GORM I'd dig into this some more but unfortunately I just don't have the time or need for it anymore. Sorry!
Sorry for the late response. I have been a bit distracted with other items. I think GORM GraphQL is a useful plugin and I am not aware of any plans to abandon it. I haven't been able to look into yet for some time now. I will try to fit into my bucket list for next few weeks. Meanwhile, I will appreciate contributions from the community.
Thanks Puneet. I'm willing to help with some legwork also if you can think of some steps for me to try, but with all the dependency changes in recent years, I'm not sure where I would start.
Thank you offering help. Let me plan out a few things early next week and I will sync with you afterwards.
Very groove, thanks again!
@Cortrah do you see any exceptions pop up in the logs regarding the graphql schema generation on startup? If so, please add them here and I can possibly point you in the right direction as well.
I have just released v2.0.1. and waiting to to another 3.0.0-M1 release soon which basically update to GraphQL Java 17. It would create if someone could help out updating the Grails and Groovy dependencies to 5.2.5 and 3.0.11 on the 3.0.x branch.
I have created 2 issues #103 and #104. Please feel free to assign them to yourself and let me know if you have any questions.
@jamesdh Could you please help resolving conflicts in https://github.com/grails/gorm-graphql/pull/70?