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

Introduce siteKey argument for guillotine #784

Closed
rymsha opened this issue Mar 7, 2024 · 0 comments · Fixed by #785
Closed

Introduce siteKey argument for guillotine #784

rymsha opened this issue Mar 7, 2024 · 0 comments · Fixed by #785
Assignees
Milestone

Comments

@rymsha
Copy link
Contributor

rymsha commented Mar 7, 2024

New optional argument siteKey on guillotine GraphQL endpoint.
It defaults to x-guillotine-sitekey header value. (note, that in G8 we remove this header entirely)

resolvers of guillotine children have access to siteKey argument via localContext.
if siteKey is not set (even via x-guillotine-sitekey), the localContext value to start with is '/' (aka project) and it is up to the developer to choose how to deal with.

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

Successfully merging a pull request may close this issue.

2 participants