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

singleDocData should be implicit #1214

Open
paultranvan opened this issue Aug 3, 2022 · 0 comments
Open

singleDocData should be implicit #1214

paultranvan opened this issue Aug 3, 2022 · 0 comments

Comments

@paultranvan
Copy link
Contributor

paultranvan commented Aug 3, 2022

When querying a single doc, one can pass a singleDocData options so the result.data returned by the query will be an object containing the doc, rather than an array of size 1.
When it's not done, a warning is emitted:

logger.warn('useQuery options.singleDocData will pass to true in a next version of cozy-client, please add it now to prevent any problem in the future.')
saying that a future cozy-client version will implicitly set this attribute, and thus making a breaking change.
While this has been added in a while, this warning remains. We should fulfill this promise eventually.

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

No branches or pull requests

1 participant