File tree Expand file tree Collapse file tree
graphql/server/src/middleware Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -151,6 +151,15 @@ const buildPreset = (
151151 const req = ( requestContext as { expressv4 ?: { req ?: Request } } ) ?. expressv4 ?. req ;
152152 const context : Record < string , string > = { } ;
153153
154+ // Schema naming strategy settings (for local development).
155+ // See constructive-db: get_available_schema_hash / create_schema_trigger.
156+ if ( process . env . CONSTRUCTIVE_SIMPLE_SCHEMA_NAMES ) {
157+ context [ 'constructive.simple_schema_names' ] = process . env . CONSTRUCTIVE_SIMPLE_SCHEMA_NAMES ;
158+ }
159+ if ( process . env . CONSTRUCTIVE_SCHEMA_USE_UNDERSCORES ) {
160+ context [ 'constructive.schema_use_underscores' ] = process . env . CONSTRUCTIVE_SCHEMA_USE_UNDERSCORES ;
161+ }
162+
154163 if ( req ) {
155164 if ( req . databaseId ) {
156165 context [ 'jwt.claims.database_id' ] = req . databaseId ;
You can’t perform that action at this time.
0 commit comments