Skip to content

Best way to debug validation error encountered in admin? #188

Answered by DanRibbens
ryanlanciaux asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @ryanlanciaux I can't see anything wrong in what you've shared. Is it possible you had an email field previously and have not saved changes or restarted the server? Using yarn dev should pick up on changes as it uses nodemon, though I have seen instances where file changes are missed for some reason, stop it and restart if you haven't already.

Here are some other thoughts:

  1. Do you have a mixup on your imports and the Locations you've shared is not what is being used?
  2. Is the POST request you're making to the api/locations route and not something else like api/users?
  3. What does the GraphQL type look like if you try going to http://localhost:3000/api/graphql-playground, expand the schema …

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Ontopic
Comment options

@jmikrut
Comment options

@ryanlanciaux
Comment options

@DanRibbens
Comment options

@ryanlanciaux
Comment options

Answer selected by zubricks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants