Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8175

Comment on: "manual/tutorial/query-documents.txt"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • manual, Server

    Description

      Should know how you specify the first parameter as a variable. E.g.
      collection.find(

      {fsuser:/575f13cf6eb9d09fdf0f14c2/}

      ,{},function(e,docs){ works. But when I have

      {fsuser:/575f13cf6eb9d09fdf0f14c2/}

      in a JSON-Variable it does not work. May be due to the Quotation Marks.

      {"fsuser":"/575f13cf6eb9d09fdf0f14c2/"}

      . Because collection.find(

      {"fsuser":"/5762620c59a7aef450417047/"}

      ,{},function(e,docs){
      does not work.

      It would be nice if there was an example of feeding the filter by a variable.

      Attachments

        Activity

          People

            Unassigned Unassigned
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              1 year, 14 weeks, 2 days ago