bijoutrouvaille / fireward

A concise and readable language for Firestore security rules, similar to Firebase Bolt.
MIT License
238 stars 4 forks source link

Unable to create docs with custom type arrays. #18

Closed meizon closed 4 years ago

meizon commented 4 years ago

If I create the following:

type Session = {
  dayOfWeek: int
}

type Booking = {
  sessions = [Session, Session?]
}

I am not able to create new Booking objects with 1 or more Session objects, however if I create an object in the firestore console, I can then update that Booking object and change the values of the dayOfWeek value and they work fine.

meizon commented 4 years ago

After trying this again, it seems that I cannot edit existing Booking objects either.

bijoutrouvaille commented 4 years ago

@meizon thank you for posting the bug. It should now be fixed in version 1.4.2 on NPM and other channels.