Hi team, I am trying to add a new entity to the d...
# troubleshoot
l
Hi team, I am trying to add a new entity to the datahub-graphql core. Starting out with something very basic. I was following the guide here: https://datahubproject.io/docs/datahub-graphql-core/. But after running the
./gradlew datahub-graphql-core:build
command without any errors, I don't see any new classes appear in
datahub-graphql-core\src\mainGeneratedGraphQL\java\com
. Any idea what the problem might be?
1
e
Hey @limited-refrigerator-50812 just making sure, you extended the entity.graphql file?
l
I extended the
\datahub-graphql-core\build\resources\main\entity.graphql
file. By adding: 1. A query for lookup 2. A mutation for creating the entity 3. A mutation for deleting the entity 4. A type for the new entity that implements "Entity" 5. I added the new entity to the EntityType enum. However, I just realised that when I run
./gradlew datahub-graphql-core:build
none of the changes persist. So my entity.graphql file resets to the way it was before, and no new classes appear in
\datahub-graphql-core\src\mainGeneratedGraphQL\java\com
@echoing-airport-49548 Any idea what might be going wrong?
Fresh day, fresh outlook. I figured out I was editing
\datahub-graphql-core\build\resources\main\entity.graphql
, while I should have been editing
\datahub-graphql-core\src\main\resources\entity.graphql