public async Task <IdentityResult> CreateGrantTypeAsync( Neo4JIdentityServer4IdentityServer4GrantType identityServer4GrantType, CancellationToken cancellationToken = default(CancellationToken)) { cancellationToken.ThrowIfCancellationRequested(); ThrowIfDisposed(); identityServer4GrantType.ThrowIfNull(nameof(identityServer4GrantType)); try { var cypher = $@"CREATE (r:{IdSrv4GrantType} $p0)"; await Session.RunAsync(cypher, Params.Create(identityServer4GrantType.ConvertToMap())); return(IdentityResult.Success); } catch (ClientException ex) { return(ex.ToIdentityResult()); } }