Good Evening!
In the documentation for this library as detailed here, it appears that you can simply override the field value for a graphql schema. I'm currently working on a .ttl ontology file in which that format was given, and yet the field was not overridden, and I wanted to ask if I am misunderstanding the override feature or if this is expected behavior.
The override that I am attempting to use looks something like the following:
_['http://docs.oasis.org/ns/cti/stix/ext/example#example_field'].graphqlName = 'overriden_example_field';
The expected behavior would be for the schema to generate:
type example {
overriden_example_field: [TYPE]
}
but what's being generated is the unchanged field:
type example {
example_field: [TYPE]
}
Good Evening!
In the documentation for this library as detailed here, it appears that you can simply override the field value for a graphql schema. I'm currently working on a .ttl ontology file in which that format was given, and yet the field was not overridden, and I wanted to ask if I am misunderstanding the override feature or if this is expected behavior.
The override that I am attempting to use looks something like the following:
_['http://docs.oasis.org/ns/cti/stix/ext/example#example_field'].graphqlName = 'overriden_example_field';The expected behavior would be for the schema to generate:
but what's being generated is the unchanged field: