hey guys, can you make a combination of 2 fields u...
# prisma-whats-new
r
hey guys, can you make a combination of 2 fields unique in graph.cool?
a
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
before hook, is that with schema extensions?
a
No, this is what's currently called a Request Pipeline hook (
TRANSFORM_ARGUMENT
)