Preserve type already added
Hello,
With this PR this code will preserve MyCustomInputType
$factory = new SchemaFactory();
$factory->setSchemaConfig(SchemaConfig::create([
'types' => [
MyCustomInputType::getInstance()
]
]));
$schema = $factory->createSchema();
Is this a good approach ? if it seem to good to you i will fix the tests, otherwise can you provide a good way to do this ?
@fezfez Can you describe in a bit more detail what it is you're hoping to accomplish here? What's the design challenge you're having in your API? Is it that you're basically wanting a static type? Assuming so, I don't see any point in doing this, as opposed to just programming an input to be static itself.
@oojacoboo i have created a very lite sample of my problem at https://github.com/fezfez/sample-graphqlite
@fezfez , would it be possible to get an explanation of your intended goals here as well? I can see from the code you're trying to create custom types using the webonyx API. But why? Can you explain why you cannot use a normal annotated object, or what the overall goal is?
Closing unless this is still needed.