示例#1
0
        public async IAsyncEnumerable <IData> GetAllPersons()
        {
            var result = await GraphQLClient.GetMetadataIdsAsync();

            result.EnsureNoErrors();
            foreach (var item in result.Data !.Metadata.Nodes)
            {
                var pr = await GraphQLClient.GetDataByMetadataIdAsync(item.Id);

                pr.EnsureNoErrors();
                yield return(pr.Data !.DataByMetadataId);
            }
        }