DocumentDB SQL with ARRAY_CONTAINS

前端 未结 4 1733
眼角桃花
眼角桃花 2020-12-11 15:45

I\'m playing around on https://www.documentdb.com/sql/demo, which allows me to query against sample documents that look like:

{
  \"id\": \"19015\",
  \"desc         


        
4条回答
  •  星月不相逢
    2020-12-11 16:37

    Note that this is a workaround that works fine.

    SELECT c.id FROM c JOIN a in c.companies where a.id = '{id}'
    

    In Linq this would be

    x => x.companies.Any(z => z.id == id)
    

提交回复
热议问题