Cant retrieve new data

Hey,

Just started a new DB using v20.03.1.

Added the following schema:

uuid: string @index(exact) .
name: string .
is_deleted: bool @index(bool) .

type Role {
    uuid
    name
    is_deleted
}

Insert

{
	"set": [
		{
			"uid": "_:xyz",
			"uuid": "c33cca3d-3506-443b-a1dc-9c435165b202",
			"name": "admin",
			"is_deleted": false,
			"dgraph.type": "Role"
		}
	]
}

And then tried to retrieve:

{
  getrole(func: uid("0x1")) {
    uid
    uuid
    name
  }
}

What ever I tried (like other functions) I only get back the uid without the name or the uuid:

{
  "data": {
    "getrole": [
      {
        "uid": "0x1"
      }
    ]
  }
}

Any idea what is wrong?

I think the latest releases are using 0x1 and 0x2 for internal things. Not sure what is. Your lease of UIDs starts at 0x3 tho.

The problem was that I missed the commitNow=true at end of my /mutate request

Hum, thats curious. I had tested with commitNow=true (Ratel is set by default).

Maybe there where another problem.

The 1st, I missed the commitNow when used with Insomnia.

The 2nd (maybe) problem was an open ssh tunnel that occupied port 8080. Maybe it interfered the communication between Ratel and Alpha (both are dockers). Didn’t tried to verify after I found out about the commiNow.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.