-
Notifications
You must be signed in to change notification settings - Fork 8
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
SDK should support GraphQL #5
Comments
Hi Travis, we actually have added a method to the SDK to do this and are preparing to publish it to GitHub. Here are two examples of usage: `Examples // get the item slug with the corresponding id in a channel |
Does your method support variables? |
Yes, it does support variables - I spent some time today adding tests to validate variable usage. Usage in my test looks like:
I have a few other tests to fix up and then I'll publish this to GitHub soon |
Looks good to me. Once it's on GitHub, how long do you think OCM adoption will take? |
The package has been published to npmjs now - are you consuming this SDK directly via your OCM service (e.g. for content layouts)? |
Primarily yes, although if there's going to be significant delay for that to be updated we'll import the new version directly
…________________________________
From: Keith MacDonald ***@***.***>
Sent: Friday, February 17, 2023, 19:47
To: oracle/content-management-sdk ***@***.***>
Cc: Travis Caruth ***@***.***>; Author ***@***.***>
Subject: Re: [oracle/content-management-sdk] SDK should support GraphQL (Issue #5)
Attention: External Sender - DO NOT CLICK links or attachments unless you can verify the sender.
The package has been published to npmjs now - are you consuming this SDK directly via your OCM service (e.g. for content layouts)?
—
Reply to this email directly, view it on GitHub<#5 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB4XSJKMWMIUQCHE3FSWCYTWYAS3NANCNFSM6AAAAAAU2XZBKA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
We're working to unify the code that is published on the server with the github/npmjs codebase. The server code is much older though I think it does have a graphql method already which you can probably use. |
I'm imagining a new method on the delivery, preview, and management clients that submit graphQL queries and returns the result as an object
https://docs.oracle.com/en/cloud/paas/content-cloud/solutions/graphql-support-oracle-content-management.html
/content/preview/api/v1.1/graphql
/content/published/api/v1.1/graphql
The text was updated successfully, but these errors were encountered: