Skip to content

Schema commands incorrectly assume schema location #741

@alejandrovrojas

Description

@alejandrovrojas

As of version 6.1.8 it seems like all schema commands assume the schema directory to be descendent from the root directory. I'm working in a monorepo-type codebase where the schema files are reused across domains. The config file looks something like this, with the schemas being imported from a parent directory:

import schemas from '../etc/schemas.ts';

export default {
	schema: {
		types: schemas,
	}
};

I haven't looked into the details of how the command but the expected behavior is to respect the schema import as dev and other commands do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions