apollographql / apollographql/apollo-tooling

Allow wildcards in localSchemaFile in service:push

Open
#1,787 2 comments 4 reactions 0 assignees View on GitHub
:hammer: cli :tada: feature
Dominant language
TypeScript
Stars
3k
Forks
460
PR merge metrics
No merged PRs in 30d

Description

Hi. In the command `apollo service:push` the `--localSchemaFile` flag currently has syntax to specify multiple files like so:

```
--localSchemaFile=src/app/graphql/schema/schema1.gql,src/app/graphql/schema/schema2.gql
```

it would be great to have a way to specify wildcards or glob patterns so that you don't have to include each and every file while specifying the path like this:

```
--localSchemaFile=src/app/graphql/schema/*.gql
```

Thanks.

Contributor guide

Open the contributing guide

Research direction

Start at the service:push entry point and trace how the --localSchemaFile value is parsed, including its existing comma-separated file syntax. Done means wildcard or glob patterns are accepted for schema files while the current multiple-file form continues to work; inspect the relevant tests, if present, to verify both forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.