I would like to query all the teams in Office 365. There is no endpoint in graph to run such a query. The only supported ones are for joined teams
https://graph.microsoft.com/v1.0/me/joinedTeams
I also noticed the graph endpoint to query all groups
https://graph.microsoft.com/v1.0/groups
which seems to list the teams as well. So what is the difference between groups and teams?