graphiti-api / graphiti-rails

MIT License
54 stars 28 forks source link

Add option to use `rawid` in generated tests #40

Closed superslau closed 4 years ago

superslau commented 4 years ago

We use uuids for our models, and when generating new resources, we have to manually fix them to get them passing.

This commit adds an option to the generator to use GraphitiSpecHelpers::Node#rawid instead of GraphitiSpecHelpers::Node#id.

Specify --rawid option when using the graphiti generator, e.g.

rails g graphiti:resource Account --model Account --rawid
richmolj commented 4 years ago

Makes sense to me, thanks @superslau !

richmolj commented 4 years ago

Released in 0.2.3