Document and code are inconsistent for `service/create`
See original GitHub issueSteps 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:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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)
Such behavior is consistent with
update
,get
, andpatch
, which accept an array of arguments. This seems to be a simple documentation problem.