Graphql should provide inter dependent data
Hello Team,
There should be also a way so that we can fetch data from Data Object which belongs to Required By dependencies.
Can Team check on this possibility?
@rajesh17692 , could you provide a PR please ?
For details please look below scenario
-
create a User class
-
create some other class like Store
-
Map user relation in store as one to Many
-
Now when I am trying to call query getStoreListing of Graphql I am getting all stores and able to get users of the store as well as relation present in Store class.
-
When trying to go call getUserListing query of Graphql not able to get a store to which stores we have mapped stores but when checking in dependencies in user object is shows in the required by so there should be way so that we can get details which exist in required by section of dependencies.
@rajesh17692 , requirements are clear, do you want to volunteer concerning the implementation as this probably not top prio :wink:
@rajesh17692 , do you think it is sufficient for now to simply return a list of element descriptors (type + id)? This should be fairly easy to implement.
@weisswurstkanone We should receive all possible columns which are available for type so that with single query we can get all parent and child results for the data.
@rajesh17692 can you depict a use case? Since the dependencies are rather meant for an overview ...
@rajesh17692 ping 🏓
Thanks a lot for reporting the issue. We did not consider the issue as "Pimcore:Priority", "Pimcore:ToDo" or "Pimcore:Backlog", so we're not going to work on that anytime soon. Please create a pull request to fix the issue if this is a bug report. We'll then review it as quickly as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request. We'll then decide whether we'd accept it or not. Thanks for your understanding.