gql verify entity existence