@@ -7092,8 +7092,8 @@ describe('ParseGraphQLServer', () => {
70927092
70937093 it ( "should return the config value for a specific parameter" , async ( ) => {
70947094 const query = gql `
7095- query configValue ($paramName: String!) {
7096- configValue (paramName: $paramName) {
7095+ query cloudConfig ($paramName: String!) {
7096+ cloudConfig (paramName: $paramName) {
70977097 value
70987098 isMasterKeyOnly
70997099 }
@@ -7111,14 +7111,14 @@ describe('ParseGraphQLServer', () => {
71117111 } ) ;
71127112
71137113 expect ( result . errors ) . toBeUndefined ( ) ;
7114- expect ( result . data . configValue . value ) . toEqual ( 'publicValue' ) ;
7115- expect ( result . data . configValue . isMasterKeyOnly ) . toEqual ( false ) ;
7114+ expect ( result . data . cloudConfig . value ) . toEqual ( 'publicValue' ) ;
7115+ expect ( result . data . cloudConfig . isMasterKeyOnly ) . toEqual ( false ) ;
71167116 } ) ;
71177117
71187118 it ( "should return null for non-existent parameter" , async ( ) => {
71197119 const query = gql `
7120- query configValue ($paramName: String!) {
7121- configValue (paramName: $paramName) {
7120+ query cloudConfig ($paramName: String!) {
7121+ cloudConfig (paramName: $paramName) {
71227122 value
71237123 isMasterKeyOnly
71247124 }
@@ -7136,18 +7136,18 @@ describe('ParseGraphQLServer', () => {
71367136 } ) ;
71377137
71387138 expect ( result . errors ) . toBeUndefined ( ) ;
7139- expect ( result . data . configValue . value ) . toBeNull ( ) ;
7140- expect ( result . data . configValue . isMasterKeyOnly ) . toBeNull ( ) ;
7139+ expect ( result . data . cloudConfig . value ) . toBeNull ( ) ;
7140+ expect ( result . data . cloudConfig . isMasterKeyOnly ) . toBeNull ( ) ;
71417141 } ) ;
71427142 } ) ;
71437143
71447144 describe ( "Config Mutations" , ( ) => {
71457145 it ( "should update a config value using mutation and retrieve it with query" , async ( ) => {
71467146 const mutation = gql `
7147- mutation updateConfigValue ($input: UpdateConfigValueInput !) {
7148- updateConfigValue (input: $input) {
7147+ mutation updateCloudConfig ($input: UpdateCloudConfigInput !) {
7148+ updateCloudConfig (input: $input) {
71497149 clientMutationId
7150- configValue {
7150+ cloudConfig {
71517151 value
71527152 isMasterKeyOnly
71537153 }
@@ -7156,8 +7156,8 @@ describe('ParseGraphQLServer', () => {
71567156 ` ;
71577157
71587158 const query = gql `
7159- query configValue ($paramName: String!) {
7160- configValue (paramName: $paramName) {
7159+ query cloudConfig ($paramName: String!) {
7160+ cloudConfig (paramName: $paramName) {
71617161 value
71627162 isMasterKeyOnly
71637163 }
@@ -7182,8 +7182,8 @@ describe('ParseGraphQLServer', () => {
71827182 } ) ;
71837183
71847184 expect ( mutationResult . errors ) . toBeUndefined ( ) ;
7185- expect ( mutationResult . data . updateConfigValue . configValue . value ) . toEqual ( 'testValue' ) ;
7186- expect ( mutationResult . data . updateConfigValue . configValue . isMasterKeyOnly ) . toEqual ( false ) ;
7185+ expect ( mutationResult . data . updateCloudConfig . cloudConfig . value ) . toEqual ( 'testValue' ) ;
7186+ expect ( mutationResult . data . updateCloudConfig . cloudConfig . isMasterKeyOnly ) . toEqual ( false ) ;
71877187
71887188 const queryResult = await apolloClient . query ( {
71897189 query,
@@ -7196,16 +7196,16 @@ describe('ParseGraphQLServer', () => {
71967196 } ) ;
71977197
71987198 expect ( queryResult . errors ) . toBeUndefined ( ) ;
7199- expect ( queryResult . data . configValue . value ) . toEqual ( 'testValue' ) ;
7200- expect ( queryResult . data . configValue . isMasterKeyOnly ) . toEqual ( false ) ;
7199+ expect ( queryResult . data . cloudConfig . value ) . toEqual ( 'testValue' ) ;
7200+ expect ( queryResult . data . cloudConfig . isMasterKeyOnly ) . toEqual ( false ) ;
72017201 } ) ;
72027202
72037203 it ( "should update a config value with isMasterKeyOnly set to true" , async ( ) => {
72047204 const mutation = gql `
7205- mutation updateConfigValue ($input: UpdateConfigValueInput !) {
7206- updateConfigValue (input: $input) {
7205+ mutation updateCloudConfig ($input: UpdateCloudConfigInput !) {
7206+ updateCloudConfig (input: $input) {
72077207 clientMutationId
7208- configValue {
7208+ cloudConfig {
72097209 value
72107210 isMasterKeyOnly
72117211 }
@@ -7214,8 +7214,8 @@ describe('ParseGraphQLServer', () => {
72147214 ` ;
72157215
72167216 const query = gql `
7217- query configValue ($paramName: String!) {
7218- configValue (paramName: $paramName) {
7217+ query cloudConfig ($paramName: String!) {
7218+ cloudConfig (paramName: $paramName) {
72197219 value
72207220 isMasterKeyOnly
72217221 }
@@ -7240,8 +7240,8 @@ describe('ParseGraphQLServer', () => {
72407240 } ) ;
72417241
72427242 expect ( mutationResult . errors ) . toBeUndefined ( ) ;
7243- expect ( mutationResult . data . updateConfigValue . configValue . value ) . toEqual ( 'privateValue' ) ;
7244- expect ( mutationResult . data . updateConfigValue . configValue . isMasterKeyOnly ) . toEqual ( true ) ;
7243+ expect ( mutationResult . data . updateCloudConfig . cloudConfig . value ) . toEqual ( 'privateValue' ) ;
7244+ expect ( mutationResult . data . updateCloudConfig . cloudConfig . isMasterKeyOnly ) . toEqual ( true ) ;
72457245
72467246 const queryResult = await apolloClient . query ( {
72477247 query,
@@ -7254,8 +7254,8 @@ describe('ParseGraphQLServer', () => {
72547254 } ) ;
72557255
72567256 expect ( queryResult . errors ) . toBeUndefined ( ) ;
7257- expect ( queryResult . data . configValue . value ) . toEqual ( 'privateValue' ) ;
7258- expect ( queryResult . data . configValue . isMasterKeyOnly ) . toEqual ( true ) ;
7257+ expect ( queryResult . data . cloudConfig . value ) . toEqual ( 'privateValue' ) ;
7258+ expect ( queryResult . data . cloudConfig . isMasterKeyOnly ) . toEqual ( true ) ;
72597259 } ) ;
72607260
72617261 it ( "should update an existing config value" , async ( ) => {
@@ -7266,10 +7266,10 @@ describe('ParseGraphQLServer', () => {
72667266 ) ;
72677267
72687268 const mutation = gql `
7269- mutation updateConfigValue ($input: UpdateConfigValueInput !) {
7270- updateConfigValue (input: $input) {
7269+ mutation updateCloudConfig ($input: UpdateCloudConfigInput !) {
7270+ updateCloudConfig (input: $input) {
72717271 clientMutationId
7272- configValue {
7272+ cloudConfig {
72737273 value
72747274 isMasterKeyOnly
72757275 }
@@ -7278,8 +7278,8 @@ describe('ParseGraphQLServer', () => {
72787278 ` ;
72797279
72807280 const query = gql `
7281- query configValue ($paramName: String!) {
7282- configValue (paramName: $paramName) {
7281+ query cloudConfig ($paramName: String!) {
7282+ cloudConfig (paramName: $paramName) {
72837283 value
72847284 isMasterKeyOnly
72857285 }
@@ -7304,7 +7304,7 @@ describe('ParseGraphQLServer', () => {
73047304 } ) ;
73057305
73067306 expect ( mutationResult . errors ) . toBeUndefined ( ) ;
7307- expect ( mutationResult . data . updateConfigValue . configValue . value ) . toEqual ( 'updatedValue' ) ;
7307+ expect ( mutationResult . data . updateCloudConfig . cloudConfig . value ) . toEqual ( 'updatedValue' ) ;
73087308
73097309 const queryResult = await apolloClient . query ( {
73107310 query,
@@ -7317,15 +7317,15 @@ describe('ParseGraphQLServer', () => {
73177317 } ) ;
73187318
73197319 expect ( queryResult . errors ) . toBeUndefined ( ) ;
7320- expect ( queryResult . data . configValue . value ) . toEqual ( 'updatedValue' ) ;
7320+ expect ( queryResult . data . cloudConfig . value ) . toEqual ( 'updatedValue' ) ;
73217321 } ) ;
73227322
73237323 it ( "should require master key to update config" , async ( ) => {
73247324 const mutation = gql `
7325- mutation updateConfigValue ($input: UpdateConfigValueInput !) {
7326- updateConfigValue (input: $input) {
7325+ mutation updateCloudConfig ($input: UpdateCloudConfigInput !) {
7326+ updateCloudConfig (input: $input) {
73277327 clientMutationId
7328- configValue {
7328+ cloudConfig {
73297329 value
73307330 isMasterKeyOnly
73317331 }
0 commit comments