Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Required and unique fields #3882

sorxrob opened this issue Sep 1, 2019 · 2 comments


Copy link

commented Sep 1, 2019

Describe the bug
Able to create duplicate and null values using postman for api and strapi-sdk-javascript for graphql requests even if fields are set to required and unique.

Steps to reproduce the behavior

  1. Create a new Content-Type
  2. Add a unique and required field
  3. Try to create records and set the required/unique values to null/any record with same data
  4. Will still be inserted to database

Expected behavior
Since the field is required/unique we should not be able to create a new entry with existing values or null values.


  • Node.js version: v10.15.3
  • NPM version: 6.10.1
  • Strapi version: 3.0.0-beta.15
  • Database: SQLite/MySQL
  • Operating system: OS X 10.14.6

This comment has been minimized.

Copy link

commented Sep 2, 2019

Looks similar to issue no #1189


This comment has been minimized.

Copy link

commented Sep 2, 2019

Agreed @ashiqsultan they are similar and this is planned to be worked on, closing in favor of #1189

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.