Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Conversation

@thecodedrift
Copy link
Contributor

@thecodedrift thecodedrift commented Nov 28, 2023

Previously, setting an operation name required a large song & dance to set a custom header which had no standardization; it was a major reason previous versions of the library introduced granular control of fetch and headers.

This change removes the fetch/header support in favor of a simpler polymorphic function.

db().collection().find(filter, options)

db().collection().find(operationName, filter, options)

If provided, the operation name sets the x-realm-op-name header.

Closes #6

@thecodedrift thecodedrift merged commit 16cd0f2 into main Nov 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pass additional headers

2 participants