So this is a new thing that may change how code is written for some.
Let me show you an example of the code and output. Then I'll write my thoughts.
var testGlideQuery = new GlideQuery('sys_user')
.select('first_name', 'last_name', 'active')
gs.info('testGlideQuery: ' + JSON.stringify(testGlideQuery,'',' '));
*** Script: testGlideQuery: [
So, yea. That's interesting. Before you go and look if you can use this in your instance, you probably don't have it yet. To get it, enable the SAM and SAAS plugins.
The methods are exposed and is written in a interesting way. I suggest you check it out.
This brings up the big question, is GlideRecord going away? No. I don't think so. This seems to be just a wrapper to allow chain-able calls to query the data. Maybe as the Now Experience comes up this will be used more in that but I don't think so. I think this is just a wrapper some team made to make their code look one way.
In any case, I wanted to write this down so if anyone looks for it something comes up, because as of now, it's not written down anywhere.