def METHOD_NAME():
    def get_name() -> str:
        return "foo"
    name = strawberry.field(name="name", resolver=get_name)
    MyType = create_type("MyType", [name])
    definition = get_object_definition(MyType, strict=True)
    assert len(definition.fields) == 1
    assert definition.fields[0].python_name == "get_name"
    assert definition.fields[0].graphql_name == "name"
    assert definition.fields[0].type == str