Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Changing a unique int to unique String results in internal server error #429

Closed
schickling opened this issue Sep 8, 2017 · 3 comments
Closed
Assignees
Milestone

Comments

@schickling
Copy link
Member

schickling commented Sep 8, 2017

Issue by marktani
Monday Aug 14, 2017 at 11:23 GMT
Originally opened as https://github.com/graphcool/api-bugs/issues/231


What is the current behavior?

Changing a unique int to unique String results in internal server error.

Please share the relevant part of your GraphQL schema and all functions, permissions or other project settings for easier reproduction

Start a new project with this schema:

type User implements Node {
  createdAt: DateTime!
  id: ID! @isUnique
  updatedAt: DateTime!
  int: Int @isUnique
}

Change the int: Int @isUnique to int: String @isUnique:

type User implements Node {
  createdAt: DateTime!
  id: ID! @isUnique
  updatedAt: DateTime!
  int: String @isUnique
}

Results in internal server error.

What is the expected behavior?

It should just work ™

@sorenbs
Copy link
Member

sorenbs commented Sep 8, 2017

@do4gr This sounds like something you already worked on. Can you shed some light?

@do4gr
Copy link
Member

do4gr commented Sep 9, 2017

This is not fixed. I can still reproduce it.

@do4gr do4gr added this to the 1.4 milestone Sep 22, 2017
@marktani marktani modified the milestones: 1.4, 1.5 Sep 22, 2017
@marktani
Copy link
Contributor

Fixed 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants