cape-io / graphql-schema-org

BSD 3-Clause "New" or "Revised" License
23 stars 7 forks source link

Update and fix small issues #7

Closed xmnlab closed 5 years ago

xmnlab commented 5 years ago
xmnlab commented 5 years ago

@webmasterkai

now it is raising:

/mnt/sda1/dev/quansight/jupyterlab-metadata-service/backend/jupyterlab_metadata_service_server/node_modules/graphql/type/validate.js:78
    throw new Error(errors.map(function (error) {
    ^

Error: The type of DataCatalog.about must be Output Type but got: undefined.

The type of DataCatalog.accountablePerson must be Output Type but got: undefined.

The type of DataCatalog.aggregateRating must be Output Type but got: undefined.

The type of DataCatalog.associatedMedia must be Output Type but got: undefined.

The type of DataCatalog.audience must be Output Type but got: undefined.

The type of DataCatalog.audio must be Output Type but got: undefined.

The type of DataCatalog.author must be Output Type but got: undefined.

The type of DataCatalog.character must be Output Type but got: undefined.

The type of DataCatalog.citation must be Output Type but got: undefined.

The type of DataCatalog.comment must be Output Type but got: undefined.

The type of DataCatalog.contentLocation must be Output Type but got: undefined.

The type of DataCatalog.contentReferenceTime must be Output Type but got: undefined.

The type of DataCatalog.contributor must be Output Type but got: undefined.

The type of DataCatalog.copyrightHolder must be Output Type but got: undefined.

The type of DataCatalog.creator must be Output Type but got: undefined.

The type of DataCatalog.dataset must be Output Type but got: undefined.

The type of DataCatalog.dateCreated must be Output Type but got: undefined.

The type of DataCatalog.dateModified must be Output Type but got: undefined.

The type of DataCatalog.datePublished must be Output Type but got: undefined.

The type of DataCatalog.editor must be Output Type but got: undefined.

The type of DataCatalog.educationalAlignment must be Output Type but got: undefined.

The type of DataCatalog.encoding must be Output Type but got: undefined.

The type of DataCatalog.exampleOfWork must be Output Type but got: undefined.

The type of DataCatalog.expires must be Output Type but got: undefined.

The type of DataCatalog.funder must be Output Type but got: undefined.

The type of DataCatalog.hasPart must be Output Type but got: undefined.

The type of DataCatalog.identifier must be Output Type but got: undefined.

The type of DataCatalog.image must be Output Type but got: undefined.

The type of DataCatalog.interactionStatistic must be Output Type but got: undefined.

The type of DataCatalog.isBasedOn must be Output Type but got: undefined.

The type of DataCatalog.isPartOf must be Output Type but got: undefined.

The type of DataCatalog.license must be Output Type but got: undefined.

The type of DataCatalog.locationCreated must be Output Type but got: undefined.

The type of DataCatalog.mainEntity must be Output Type but got: undefined.

The type of DataCatalog.mainEntityOfPage must be Output Type but got: undefined.

The type of DataCatalog.mentions must be Output Type but got: undefined.

The type of DataCatalog.offers must be Output Type but got: undefined.

The type of DataCatalog.potentialAction must be Output Type but got: undefined.

The type of DataCatalog.producer must be Output Type but got: undefined.

The type of DataCatalog.provider must be Output Type but got: undefined.

The type of DataCatalog.publication must be Output Type but got: undefined.

The type of DataCatalog.publisher must be Output Type but got: undefined.

The type of DataCatalog.publisherImprint must be Output Type but got: undefined.

The type of DataCatalog.recordedAt must be Output Type but got: undefined.

The type of DataCatalog.releasedEvent must be Output Type but got: undefined.

The type of DataCatalog.review must be Output Type but got: undefined.

The type of DataCatalog.sourceOrganization must be Output Type but got: undefined.

The type of DataCatalog.spatialCoverage must be Output Type but got: undefined.

The type of DataCatalog.sponsor must be Output Type but got: undefined.

The type of DataCatalog.temporalCoverage must be Output Type but got: undefined.

The type of DataCatalog.timeRequired must be Output Type but got: undefined.

The type of DataCatalog.translationOfWork must be Output Type but got: undefined.

The type of DataCatalog.translator must be Output Type but got: undefined.

The type of DataCatalog.video must be Output Type but got: undefined.

The type of DataCatalog.workExample must be Output Type but got: undefined.

The type of DataCatalog.workTranslation must be Output Type but got: undefined.
    at assertValidSchema (/mnt/sda1/dev/quansight/jupyterlab-metadata-service/backend/jupyterlab_metadata_service_server/node_modules/graphql/type/validate.js:78:11)
    at assertValidExecutionArguments (/mnt/sda1/dev/quansight/jupyterlab-metadata-service/backend/jupyterlab_metadata_service_server/node_modules/graphql/execution/execute.js:146:35)
    at executeImpl (/mnt/sda1/dev/quansight/jupyterlab-metadata-service/backend/jupyterlab_metadata_service_server/node_modules/graphql/execution/execute.js:67:3)
    at Object.execute (/mnt/sda1/dev/quansight/jupyterlab-metadata-service/backend/jupyterlab_metadata_service_server/node_modules/graphql/execution/execute.js:62:229)
    at Object.generateSchemaHash (/mnt/sda1/dev/quansight/jupyterlab-metadata-service/backend/jupyterlab_metadata_service_server/node_modules/apollo-server-core/dist/utils/schemaHash.js:14:32)
    at new ApolloServerBase (/mnt/sda1/dev/quansight/jupyterlab-metadata-service/backend/jupyterlab_metadata_service_server/node_modules/apollo-server-core/dist/ApolloServer.js:157:40)
    at new ApolloServer (/mnt/sda1/dev/quansight/jupyterlab-metadata-service/backend/jupyterlab_metadata_service_server/node_modules/apollo-server-express/dist/ApolloServer.js:44:1)
    at new ApolloServer (/mnt/sda1/dev/quansight/jupyterlab-metadata-service/backend/jupyterlab_metadata_service_server/node_modules/apollo-server/dist/index.js:23:9)
    at Object.<anonymous> (/mnt/sda1/dev/quansight/jupyterlab-metadata-service/backend/jupyterlab_metadata_service_server/src/index.js:25:16)
    at Module._compile (internal/modules/cjs/loader.js:721:30)

any idea?

webmasterkai commented 5 years ago

Thanks for helping out with this. It looks like I was generating the contents of the /lib dir from the /src directory. Is there something that requires the lib dir to be added to the repo?

I'll take a look at what's happening.

If you'd like to chat in realtime I made a thread on spectrum.

xmnlab commented 5 years ago

@webmasterkai using lib inside the repo allows me to install the lib from github before get this merged I can remove that and rebase my code ... so it should be dropped in the git history.