James Chua

Results 17 comments of James Chua

Yes, it has to be considered, i don't think the new tests that i suggest will pass. Because you are only checking for none :) On Tue, Sep 27, 2022,...

@hjilke hi there, in graphql, there isn't a notion of an "Any" type. all objects must have a type

so the error is saying that first_name is a method instead of a string, because, we defined that as a method in ``` @strawberry.experimental.pydantic.type(UserName) class UserNameType: last_name: strawberry.auto @strawberry.field def...

> +1 Facing the same issue. > > In my case I had a a list of enum types: `List[EnumType]` as a field type so the above solution did not...

hey @taasan , could you try out this fix here https://github.com/strawberry-graphql/strawberry/pull/1994 ``` pip install strawberry-graphql==0.116.5.dev.1657033844 ```

this happens because the graphql name is the same for the two scalar types. see https://discord.com/channels/689806334337482765/995751112554594485/996083557925650563

I agree that it is confusing that isinstance(val, pydantic.EmailStr) raises. As a workaround , am using this library which gives the expected behaviour with pydantic https://phantom-types.readthedocs.io/en/stable/pages/pydantic-support.html

> @thejaminator Cloud you explain what is it? > I don't understand Hi, if you install the latest package, it should work already. The other MR that I opened was...