title: How to retrieve the value of a json object from Mysql in Graphql
body: <pre><code>import { GraphQLString, GraphQLScalarType } from 'graphql'
  import { city } from '../../Entities/Cities'
  
  
  export const CREATE_CITY = {
      type: Citytype,
      args: {
          Name: { type: GraphQLString },
          CountryCode: { type: GraphQLString },
          District: { type: GraphQLString },
          Info: { type: GraphQLString }
      },
      resolve(parent: any, args: any) {
          const { Name, CountryCode, District, Info } = args;
          city.insert({ Name, CountryCode, District, Info });
          return args;
      },
  }`
  </code></pre>
  <pre><code>import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from &quot;typeorm&quot;;
  
  
  @Entity()
  export class city extends BaseEntity{
  
      @PrimaryGeneratedColumn()
      Id!: number; 
  
      @Column({ type: &quot;char&quot;, length: 35 })
      Name!: string;
  
      @Column({ type: &quot;char&quot;, length: 3 })
      CountryCode!: string;
  
      @Column({ type: &quot;char&quot;, length: 20 })
      District!: string;
  
      @Column({ type: &quot;string&quot; })
      Info!: string;
    
  }
  </code></pre>
  <p>&lt;I'm trying to learn graphql and I'm a day in&gt;</p>
  <p>The Info type is suppose to be a json, in my database it looks like {&quot;Population&quot;: 127800} with the same definition. I'm fully aware that it isn't a string/GraphQLString but I don't know how to obtain the value of this object. It returns Info: null and an error - &quot;message&quot;: &quot;String cannot represent value: { Population: 127800 }&quot; for obvious reasons.</p>
  <p>The code has the same structure as the tutorial I watched and only this video.
  Link: <a href="https://www.youtube.com/watch?v=fov5e6XJgwc&amp;ab_channel=PedroTech" rel="nofollow noreferrer">https://www.youtube.com/watch?v=fov5e6XJgwc&amp;ab_channel=PedroTech</a></p>
  <p>Q: I want to know how to get the population ex. {&quot;Population&quot;: 127800} when I query</p>
  <p>it should look like Info: {&quot;Population&quot;: 127800}</p>
  <p>Optional: How to get the value of population if it looks like - Info: 127800</p>