question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document and code are inconsistent for `service/create`

See original GitHub issue

Steps to reproduce

Pass an array of entities directly to create action

Expected behavior

Based on documentation, all the entities should be created.

Actual behavior

Only the first entity in the array was created.

https://github.com/feathers-plus/feathers-vuex/blob/master/src/service-module/actions.js#L113 shows that create actually accepts a paramArray which looks like [data, params], but this is not mentioned in docs.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
marshallswaincommented, Jun 27, 2019

@chengyuhui Yep, this is a documentation mistake. Thanks for opening this issue because I never would have caught it.

When an array is passed to the create method, it should behave exactly the same way as the update and patch methods, where the arguments are provided in an array. (this is due to Vuex limitation of a single allowed argument)

0reactions
chengyuhuicommented, Jun 27, 2019

Such behavior is consistent with update, get, and patch, which accept an array of arguments. This seems to be a simple documentation problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[HEALTHCHECK] Inconsistent behavior · Issue #1263 - GitHub
Through docker service create iamge-name... service will become available immediately. Actual behavior. In fact, the container can be used only ...
Read more >
Installation guide --- Setting up the license (Mac) - Stata
If you get the message “The serial number, code, and authorization are inconsistent”, try the initialization again. Copy and paste your code ......
Read more >
Installing Odoo — Odoo 16.0 documentation
It can be used to discover and test Odoo and do non-code customizations (i.e. incompatible with custom modules or the Odoo Apps Store)...
Read more >
Database Engine events and errors - SQL Server
Consult this MSSQL error code list to find explanations for error messages for SQL Server database engine events.
Read more >
Making Sure All Columns Appear When You Combine Data ...
Here's a really common problem that occurs when combining data from multiple files, or indeed any type of data source, in Power BI/Power ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found