Azure-docs: Can you output multiple CosmosDB documents with Javascript?

Created on 27 Dec 2018  Â·  5Comments  Â·  Source: MicrosoftDocs/azure-docs

I see examples for creating multiple documents using C# or F# here, but I do not see an example for Javascript. Is this possible?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 assigned-to-author azure-functions; cosmos-dsvc doc-enhancement past-90-days resolved triaged

Most helpful comment

@tfosmark No documentation was ever added

All 5 comments

I did just try this out:

context.bindings.mymodel = JSON.stringify([
  { "foo": "bar" },
  { "faz": "baz" }
])

And it does work. It would be nice to see documentation for this here.

@eschwartz Thank you so much for taking the time to detail this working example. I am going to assign this to the content author to evaluate and update as appropriate.

Thanks, @eschwartz! I'll add this update to my current backlog.

Thank you for taking the time to share your product and documentation feedback with us. Your input is valued because it helps us create the right documentation for our customers. It looks like this issue has been addressed, so I am closing this. Thanks!

@tfosmark No documentation was ever added

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spottedmahn picture spottedmahn  Â·  3Comments

DeepPuddles picture DeepPuddles  Â·  3Comments

jharbieh picture jharbieh  Â·  3Comments

monteledwards picture monteledwards  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments