Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library with GraphQL wrapper included #5434

Closed
agriffard opened this issue Feb 1, 2020 · 2 comments
Closed

Library with GraphQL wrapper included #5434

agriffard opened this issue Feb 1, 2020 · 2 comments
Labels
Milestone

Comments

@agriffard
Copy link
Member

If people want to consume Orchard Core contents from an external project, it would be interesting to provide a Shared library that allows you to specify (in Configuration) the url and may be the OpenId token to provide in order to retrieve some content(s) by alias, by content type or from a query by sending a GraphQL call.

If the content types are declared somewhere (as in Migrations) and shared, they could be deserialized as objects in order to easily access their properties (Parts, Fields, Metadatas) when they are retrieved with a Generic method.

That would be useful in the context of a Blazor project for example.

@carlwoodhouse
Copy link
Member

At our place we use https://github.com/Husqvik/GraphQlClientGenerator to generate strongly typed packages for out internal nuget.

The problem a little is the dynamic nature of orchard on a per site / tenant basis; as you alude too different parts, types, etc ...

Im sure we could include something with 'default' stuff; but even that depends on the recipe, permissions, etc a little.

@agriffard
Copy link
Member Author

See #6639 to export the GraphQL Schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants