You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Needing to learn GraphQL and found your article which thus far has been handy, but I'm hitting an issue with the query.
Severity Code Description Project File Line Suppression State
Error CS1061 'ArgumentValue' does not contain a definition for 'GetPropertyValue' and no accessible extension method 'GetPropertyValue' accepting a first argument of type 'ArgumentValue' could be found (are you missing a using directive or an assembly reference?) HopprQL C:\Users\JeffreyPatton\source\repos\HopprQL\Queries\CustomerQuery.cs 23 Active
I'm getting the red wavy lines under .GetPropertyValue() and basically there is no huge difference between what I have and what is in this code. Just looking for a little advice on how to resolve this.
usingGraphQL.Types;usingMicrosoft.EntityFrameworkCore;usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Threading.Tasks;usingHopprQL.Types;usingHopprQL.Models;usingHopprQL.Contexts;namespaceHopprQL.Queries{publicclassCustomerQuery:ObjectGraphType{privatereadonlyCustomerContext_appContext;publicCustomerQuery(CustomerContextappContext){this._appContext=appContext;Name="Query";Field<ListGraphType<CustomerGraphType>>("customers","Returns a list of Customer",resolve: context =>_appContext.Customers.ToList());Field<CustomerGraphType>("customer","Returns a Single Customer",newQueryArguments(newQueryArgument<NonNullGraphType<IntGraphType>>{Name="id",Description="Customer Id"}),
context =>_appContext.Customers.Single(x =>x.Id==context.Arguments["id"].GetPropertyValue<int>()));}}}
The text was updated successfully, but these errors were encountered:
Hey,
Needing to learn GraphQL and found your article which thus far has been handy, but I'm hitting an issue with the query.
Severity Code Description Project File Line Suppression State
Error CS1061 'ArgumentValue' does not contain a definition for 'GetPropertyValue' and no accessible extension method 'GetPropertyValue' accepting a first argument of type 'ArgumentValue' could be found (are you missing a using directive or an assembly reference?) HopprQL C:\Users\JeffreyPatton\source\repos\HopprQL\Queries\CustomerQuery.cs 23 Active
I'm getting the red wavy lines under .GetPropertyValue() and basically there is no huge difference between what I have and what is in this code. Just looking for a little advice on how to resolve this.
The text was updated successfully, but these errors were encountered: