dherault / dherault/semantic-graphql

Graphql Schema Field Override

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
106
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Good Evening!

In the documentation for this library as detailed [here](https://github.com/dherault/semantic-graphql#overriding-default-values), 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]
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.