Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tpeczek committed May 26, 2019
1 parent 53dd525 commit 723f790
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Demo.Azure.Functions.GraphQL/Schema/Queries/PlanetQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ namespace Demo.Azure.Functions.GraphQL.Schema.Queries
{
internal class PlanetQuery: ObjectGraphType
{
private static readonly Uri _charactersCollectionUri = UriFactory.CreateDocumentCollectionUri(Constants.DATABASE_NAME, Constants.PLANETS_COLLECTION_NAME);
private static readonly Uri _planetsCollectionUri = UriFactory.CreateDocumentCollectionUri(Constants.DATABASE_NAME, Constants.PLANETS_COLLECTION_NAME);
private static readonly FeedOptions _feedOptions = new FeedOptions { MaxItemCount = -1, };

public PlanetQuery(IDocumentClient documentClient)
{
Field<ListGraphType<PlanetType>>(
"planets",
resolve: context => documentClient.CreateDocumentQuery<Planet>(_charactersCollectionUri, _feedOptions)
resolve: context => documentClient.CreateDocumentQuery<Planet>(_planetsCollectionUri, _feedOptions)
);
}
}
Expand Down
14 changes: 7 additions & 7 deletions Demo.Azure.Functions.GraphQL/Schema/Types/PlanetType.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using GraphQL.Types;
using Demo.Azure.Functions.GraphQL.Documents;
using System;
using System.Linq;
using System.Threading.Tasks;
using System.Collections.Generic;
using Microsoft.Azure.Documents;
using Demo.Azure.Functions.GraphQL.Infrastructure;
using Microsoft.Azure.Documents.Client;
using System;
using System.Linq;
using GraphQL.Types;
using GraphQL.DataLoader;
using System.Collections.Generic;
using System.Threading.Tasks;
using Demo.Azure.Functions.GraphQL.Documents;
using Demo.Azure.Functions.GraphQL.Infrastructure;

namespace Demo.Azure.Functions.GraphQL.Schema.Types
{
Expand Down

0 comments on commit 723f790

Please sign in to comment.