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

Added support for nested global fields #230

Draft
wants to merge 5 commits into
base: feature_nested_global_field
Choose a base branch
from

Conversation

sunil-lakshman
Copy link
Contributor

No description provided.

Comment on lines 72 to 73
* client.stack({ api_key: 'api_key'}).globalField('global_field_uid').updateNestedGlobalField(data, { headers: { api_version: '3.3' }})
* .then((globalField) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sunil-lakshman , pls correct the version here

Comment on lines 166 to 167
* client.stack({ api_key: 'api_key'}).globalField({ api_version: '3.2' }).fetch()
* .then((globalField) => console.log(globalField))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sunil-lakshman , We cannot call the fetch method without the uid. Right? I think the second example can be removed.

@aman19K
Copy link
Contributor

aman19K commented Dec 17, 2024

@sunil-lakshman , LGTM.

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

Successfully merging this pull request may close these issues.

2 participants