我正在制作一个GraphQL查询来显示表中的记录并对其进行排序。我对GraphQL语法不是很熟悉,但总是收到同样的错误。
以下是我的语法:
{“query”:“{table(其中:{accountNumber:{eq:1000159826}和:{transactionDate:{gt:“2020-07-01”}和;{transaction Date:{lt:“2023-06-30”}}}},sort:{field:transactionDate,order:DESC}){nodes{AccountNumber:AccountNumber PrincipalBalanceAmount:principal BalanceAmount TransactionPaidThroughDate:transactionPaidThrooghDate TransactionDescription:TransactionDescription TransactionEffectiveDate:transaction EffectiveDate EscrowBalanceAmont:EscrowBalanceAmount InstitutionCode:InstitutionCode TransactionDate:transmissionDate TransactionType:TransactionType PrincipalAmount:PrincipalAmount InterestAmount:interest金额EscrowAmount:escrowAmountLateChargeAmount:lateChargeAamountUnappliedFundsMount:Unapplied FundsMount TransactionAmount:TransactionAmount}}“}
系统一直以相同的类似错误进行响应:
{“errors”:[{“message”:“参数\u0060sort\u0060不存在。”,“locations”:〔{“line”:1,“column”:215}〕,“extensions”:{“type”:“Query”,“field”:“v_DomainSvc_Loan_Payments”,“argument”:“sort”,“specifiedBy”:“http://spec.graphql.org/October2021/#sec-必需的参数“}}]}
我试过排序,排序,排序。它们似乎都不起作用。