How to use the @default directive?


I stumbled onto this post, which mentions how to set default values for timestamp fields and any field in general. It mentioned also this MR which is already merged, and still in the main codebase.

Then my question is: Why can’t I use the @default directive in my dgraph cloud instance? I’m trying to modify the schema but it throws this error

resolving updateGQLSchema failed because input:640: Undefined directive default.

Will it ever be added, or if I want to use it would I need to host a server myself?

I had the same question some mins ago on the official release of this feat :slightly_smiling_face:

let’s :pray:

the cloud backend version is v21.03.0-92, which is already EOL