json-fs-query
    Preparing search index...

    Function assertFieldsDefined

    • Throw unless record defines every one of fields, naming the first that it doesn't and the fields it has: a misspelled field would otherwise be dropped from an insert, stored by an update, or match nothing in a read.

      Parameters

      • entity: string

        The record's name, for the message.

      • record: recordDefinition
      • fields: string[]
      • where: string

        Where the fields were given (insert, set, where...), for the message.

      Returns void

      Unknown field "<field>" in <where>: <entity> has <fields>.