🎁

12 Days of Baddass Courses sale! Get instant access to the entire egghead library of courses and lessons for 58% off.

Runs out in:
15 : 06 : 11 : 08
1×
Become a member
to unlock all features
Autoplay

    Inserting a document

    Chris BiscardiChris Biscardi
    faunadbFaunaDB

    How to create a document in a collection using the FaunaDB shell. Note that when sending the document in, you have to make it a value of the data key.

    Create(
      Collection("customers"),
      {
        data: {
          firstName: "Jane",
          lastName: "Doe",
          address: {
            street: "87856 Mendota Court",
            city: "Idaho Falls",
            state: "ID",
            zipCode: "83405"
          },
          telephone: "208-346-0715",
          creditCard: {
            network: "Visa",
            number: "4556781272473393"
          }
        }
      }
    )
    Code

    Code

    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    Discuss

    Discuss