-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Less an issue and more of a discussion point. I've noticed the scheme for our generated file structure looks like:
import {
deleteOrganizationByName,
listOrganizations,
} from "@bufbuild/apigen/buf/alpha/registry/v1alpha1/organization-OrganizationService_connectquery";I love that we can just import the specific methods we use, which can reduce bundle size, but I wonder about the scheme of {service}-{serviceName}_connectquery. Since this is effectively an api surface, maybe it makes sense to instead do:
import {
deleteOrganizationByName,
listOrganizations,
} from "@bufbuild/apigen/buf/alpha/registry/v1alpha1/organization_connectquery/organization_service";This way we can stay consistent with our existing plugins which generate one file/folder for each protofile. And we can just nest the multiple services inside.
stepan-romankov, philibea, 06kellyjac and Nikola-Milovic
Metadata
Metadata
Assignees
Labels
No labels