Skip to content

allPendingOpticalData fails #102

Description

@christoph-maurer

The query

query {
  allPendingOpticalData {
    edges {
      node {
        name
        uuid
      }
    }
  }
}

fails with

  "errors": [
    {
      "message": "Unexpected Execution Error",

The logs say

backend-1        | [12:11:23 ERR] Resolver error. Field: 'allPendingOpticalData'. Operation: '["allPendingOpticalData { ... }
backend-1        | ","edges { ... }
backend-1        | ","node { ... }
backend-1        | ","name
backend-1        | uuid
backend-1        | "]'.
backend-1        | System.ArgumentException: In order to use cursor pagination, you must specify at least one key using the `OrderBy` method. (Parameter 'executable')
backend-1        |    at HotChocolate.Data.Pagination.EfQueryableCursorPagingHandler`1.SliceAsync(IResolverContext context, IQueryableExecutable`1 executable, CursorPagingArguments arguments)
backend-1        |    at HotChocolate.Types.Pagination.CursorPagingHandler.HotChocolate.Types.Pagination.IPagingHandler.SliceAsync(IResolverContext context, Object source)
backend-1        |    at HotChocolate.Types.Pagination.PagingMiddleware.InvokeAsync(IMiddlewareContext context)
backend-1        |    at HotChocolate.Execution.Processing.Tasks.ResolverTask.ExecuteResolverPipelineAsync(CancellationToken cancellationToken)
backend-1        |    at HotChocolate.Execution.Processing.Tasks.ResolverTask.TryExecuteAsync(CancellationToken cancellationToken)
backend-1        | [12:11:23 ERR] Operation error. Document: {
backend-1        |   allPendingOpticalData {
backend-1        |     edges {
backend-1        |       node {
backend-1        |         name
backend-1        |         uuid
backend-1        |       }
backend-1        |     }
backend-1        |   }
backend-1        | }

@simonwacker How can we solve this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

2601ISEFraunhofer Institute for Solar Energy Systems ISE

Type

No type

Projects

  • Status
    ✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions