Code on the Rocks
Code on the Rocks

Reputation: 17616

PocketBase "must not be in list" error when creating new collection

I am trying to create a new "Feedback" collection in my PocketBase database but I am getting an error when trying to add an id field.

Each feedback item should be connected to a user via the user's id so I am using a Relation field type.

enter image description here

Upvotes: 0

Views: 396

Answers (1)

Code on the Rocks
Code on the Rocks

Reputation: 17616

This was a simple mistake. New collections automatically come with the following fields:

  • id
  • created
  • updated

The "must not be in list" error means you need to name the field something else. In my case I just changed it to user_id.

Upvotes: 2

Related Questions