hey guys, can you make a combination of 2 fields unique in graph.cool?
a
agartha
10/02/2017, 8:02 PM
Not out of the box. However, you could concatenate the two fields in a before hook, and make that field unique, so the create/update would fail if the combination is not unique.
r
rein
10/03/2017, 2:42 PM
before hook, is that with schema extensions?
a
agartha
10/03/2017, 4:09 PM
No, this is what's currently called a Request Pipeline hook (