Conversation
waghanza
left a comment
There was a problem hiding this comment.
I'm not sure I understand how graphql schema works, so I assume this is working (at least you have more skills on that 🎉)
schema.graphql
Outdated
|
|
||
| type Value { | ||
| id: ID | ||
| value: Int |
There was a problem hiding this comment.
@ohler55 Those are values stored in database stored as float
There was a problem hiding this comment.
I would have thought so too. The seed script seemed to use setting an attribute called value with an int. Maybe that is meant to be something else. I did not see a float being set in the seeding though.
There was a problem hiding this comment.
If you know what attributes are in the Postgres tables I'll update based on that. That would be better than inspecting a seeded object after it is created.
There was a problem hiding this comment.
Absolutely. In fact, there are stored as double precision in postgresql (honestly in prefer not to take care of other engines) and considered as Float in Ruby
There was a problem hiding this comment.
No matter if seeds uses Integer 😛 they are automatically casted before storing in database
I wasn't sure how the various types relate to once another so I followed the Rake seed target. I suspect there is something missing as I did not see any floats which I would expect for values of benchmarks.